Azure/aks-periscope

Kube Objects collector only collects Pod descriptions, not other resource types

peterbom opened this issue · 0 comments

Describe the bug
The KubeObjectsCollector takes as input a DIAGNOSTIC_KUBEOBJECTS_LIST environment variable, consisting of a space-separated list of <namespace>/<kind> pairs. For each pair, it should run kubectl describe on for the specified resource in the specified namespace.

Instead, it runs kubectl describe pod every time. In other words, the kind (second part of each pair) is ignored.

To Reproduce

  • Run Periscope and check the uploaded data in the storage account.
  • See the data for kube-system_pod_<podname> (for every pod in kube-system).
  • Notice that there are duplicate sets of exactly the same data for kube-system_deployment_<podname> and kube-system_service_<podname>.

Expected behavior
The data for kube-system_deployment_<xxx> should contain descriptions of the deployments.
The data for kube-system_service_<xxx> should contain descriptions of the services.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.