Skip to content

When no pods are presents that the bpfappication can bind to it nevertheless reports SuccessΒ #450

@andreaskaris

Description

@andreaskaris

When no pods are present that the bpfapplication can bind to it nevertheless reports Success

[root@centos9-bpfman bpfman-operator]# kubectl get bpfapplicationstates
NAME                             NODE                              STATUS    AGE
bpfapplication-sample-6eab3078   bpfman-deployment-control-plane   Success   3m27s
[root@centos9-bpfman bpfman-operator]# kubectl get bpfapplicationstates -o yaml
apiVersion: v1
items:
- apiVersion: bpfman.io/v1alpha1
  kind: BpfApplicationState
  metadata:
    creationTimestamp: "2025-07-02T08:58:02Z"
    finalizers:
    - bpfman.io.nsbpfapplicationcontroller/finalizer
    generation: 1
    labels:
      bpfman.io/ownedByProgram: bpfapplication-sample
      kubernetes.io/hostname: bpfman-deployment-control-plane
    name: bpfapplication-sample-6eab3078
    namespace: acme
    ownerReferences:
    - apiVersion: bpfman.io/v1alpha1
      blockOwnerDeletion: true
      controller: true
      kind: BpfApplication
      name: bpfapplication-sample
      uid: 0a2dd439-577f-49ae-81ae-54a9a2265ddb
    resourceVersion: "74052"
    uid: 71499d5d-e248-404f-b432-112b395754dd
  status:
    appLoadStatus: LoadSuccess
    conditions:
    - lastTransitionTime: "2025-07-02T08:58:19Z"
      message: The BPF application has been successfully loaded and attached
      reason: Success
      status: "True"
      type: Success
    node: bpfman-deployment-control-plane
    programs:
    - name: tc_pass_test
      programId: 851
      programLinkStatus: Success
      tc: {}
      type: TC
    - name: tcx_next_test
      programId: 852
      programLinkStatus: Success
      tcx: {}
      type: TCX
    - name: uprobe_test
      programId: 853
      programLinkStatus: Success
      type: UProbe
      uprobe: {}
    - name: uretprobe_test
      programId: 854
      programLinkStatus: Success
      type: URetProbe
      uretprobe: {}
    - name: xdp_pass_test
      programId: 855
      programLinkStatus: Success
      type: XDP
      xdp: {}
    updateCount: 2
kind: List
metadata:
  resourceVersion: ""
[root@centos9-bpfman bpfman-operator]# kubectl get pods
No resources found in acme namespace.

Whereas that is not an issue per se, it would be nice to have an indicator that actually no action was taken

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    πŸ†• New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions