Skip to content

Exclude name feature: The status of a csib shows the number of nimbus policies as zero #206

@shivaccuknox

Description

@shivaccuknox
$ kg csib
NAME          STATUS    AGE   INTENTS   NIMBUSPOLICIES   CLUSTERNIMBUSPOLICY
pet-binding   Created   5s    1                          pet-binding

Where as the yaml of the csib shows the number correctly

apiVersion: v1
items:
- apiVersion: intent.security.nimbus.com/v1alpha1
  kind: ClusterSecurityIntentBinding
  metadata:
    annotations:
      kubectl.kubernetes.io/last-applied-configuration: |
        {"apiVersion":"intent.security.nimbus.com/v1alpha1","kind":"ClusterSecurityIntentBinding","metadata":{"annotations":{},"name":"pet-binding"},"spec":{"intents":[{"name":"pet"}],"selector":{"nsSelector":{"matchNames":["*"]},"workloadSelector":{"matchLabels":{"nf":"webui"}}}}}
    creationTimestamp: "2024-07-01T06:20:33Z"
    generation: 1
    name: pet-binding
    resourceVersion: "2152553"
    uid: 23a82419-d2db-416d-a8e3-df623def9b2c
  spec:
    intents:
    - name: pet
    selector:
      nsSelector:
        matchNames:
        - '*'
      workloadSelector:
        matchLabels:
          nf: webui
  status:
    boundIntents:
    - pet
    clusterNimbusPolicy: pet-binding
    lastUpdated: "2024-07-01T06:20:34Z"
    nimbusPolicyNamespaces:
    - nimbus
    - porch-system
    - capi-system
    - resource-group-system
    - metallb-system
    - capd-system
    - local-path-storage
    - default
    - nephio-webui
    - porch-fn-system
    - capi-kubeadm-bootstrap-system
    - capi-kubeadm-control-plane-system
    - nephio-system
    - backend-system
    - kube-public
    - cert-manager
    - kube-node-lease
    - config-management-system
    - free5gc-cp
    - network-config
    - config-management-monitoring
    - gitea
    - kubearmor
    - kyverno
    numberOfBoundIntents: 1
    numberOfNimbusPolicies: 24
    status: Created

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions