Skip to content

kamaji pod count uses hardcoded kamaji-system namespace (#202 class, low likelihood) #211

Description

@jgruberf5

Summary

analyze_kamaji counts pods from a hardcoded kamaji-system namespace (backend/services/scanner/fetch.py:895) and gates DETECTED on running pods — the same class as #202 and the cert-manager sibling. A Kamaji control-plane installed into a non-kamaji-system namespace (e.g. any Helm --namespace) reads 0 pods and mis-reports its status.

Severity: low

Lower likelihood than the cert-manager instance: kamaji-system is the conventional install namespace and there is no widely-shipped platform add-on that relocates it (unlike ROKS/Red Hat cert-manager). Filed so the class is fully tracked, not just the two live instances.

The class

There are exactly three hardcoded-namespace pod fetches:

  • fetch.py:833cert-manager (higher severity, filed separately — downgrades status)
  • fetch.py:834kube-system
  • fetch.py:895kamaji-system (this issue)

Suggested fix

Collapse all three into the existing backend/services/bnk_pod_discovery.py:272 _sweep_all_namespaces / list_pod_for_all_namespaces pattern, partitioned by namespace/name. That closes the class permanently and removes the per-component hardcoding.

Context

Follow-up to PR #203 (issue #202, Multus openshift-multus). Raised by @bonnyr-f5 in round-1 review as Major M-1: the multus fix is 1-of-3 of this class; kamaji is the lower-likelihood third instance, kept out of #203's scope.

https://claude.ai/code/session_01UCsZXDxBsWV2s4kT47DwDW

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken or behaves incorrectlykubernetesK8s engine, Helm, CRDs, cluster operationsseverity:lowCosmetic, isolated, or self-evident once hit

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions