Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Topology: status labels for overridden policies #178

Open
jasonmadigan opened this issue Dec 5, 2024 · 0 comments
Open

Topology: status labels for overridden policies #178

jasonmadigan opened this issue Dec 5, 2024 · 0 comments

Comments

@jasonmadigan
Copy link
Member

apiVersion: kuadrant.io/v1
kind: RateLimitPolicy
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"kuadrant.io/v1","kind":"RateLimitPolicy","metadata":{"annotations":{},"name":"external-rlp","namespace":"api-gateway"},"spec":{"defaults":{"limits":{"low-limit":{"rates":[{"limit":1,"window":"10s"}]}}},"targetRef":{"group":"gateway.networking.k8s.io","kind":"Gateway","name":"external"}}}
  creationTimestamp: '2024-12-04T22:07:14Z'
  generation: 1
  managedFields:
    - apiVersion: kuadrant.io/v1
      fieldsType: FieldsV1
      fieldsV1:
        'f:metadata':
          'f:annotations':
            .: {}
            'f:kubectl.kubernetes.io/last-applied-configuration': {}
        'f:spec':
          .: {}
          'f:defaults':
            .: {}
            'f:limits':
              .: {}
              'f:low-limit':
                .: {}
                'f:rates': {}
            'f:strategy': {}
          'f:targetRef':
            .: {}
            'f:group': {}
            'f:kind': {}
            'f:name': {}
      manager: kubectl-client-side-apply
      operation: Update
      time: '2024-12-04T22:07:14Z'
    - apiVersion: kuadrant.io/v1
      fieldsType: FieldsV1
      fieldsV1:
        'f:status':
          .: {}
          'f:conditions':
            .: {}
            'k:{"type":"Accepted"}':
              .: {}
              'f:lastTransitionTime': {}
              'f:message': {}
              'f:reason': {}
              'f:status': {}
              'f:type': {}
            'k:{"type":"Enforced"}':
              .: {}
              'f:lastTransitionTime': {}
              'f:message': {}
              'f:reason': {}
              'f:status': {}
              'f:type': {}
          'f:observedGeneration': {}
      manager: manager
      operation: Update
      subresource: status
      time: '2024-12-04T22:41:03Z'
  name: external-rlp
  namespace: api-gateway
  resourceVersion: '1587613'
  uid: ba1442b2-4f5e-4e4b-8c62-c350aa35c31e
spec:
  defaults:
    limits:
      low-limit:
        rates:
          - limit: 1
            window: 10s
    strategy: atomic
  targetRef:
    group: gateway.networking.k8s.io
    kind: Gateway
    name: external
status:
  conditions:
    - lastTransitionTime: '2024-12-04T22:07:14Z'
      message: RateLimitPolicy has been accepted
      reason: Accepted
      status: 'True'
      type: Accepted
    - lastTransitionTime: '2024-12-04T22:41:03Z'
      message: RateLimitPolicy is overridden
      reason: Overridden
      status: 'False'
      type: Enforced
  observedGeneration: 1

This should show "Enforced (Overridden)"

@guicassolato guicassolato moved this to Todo in Kuadrant Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant