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

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

Closed
peterbom opened this issue Jun 29, 2022 · 0 comments · Fixed by #188
Closed

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

peterbom opened this issue Jun 29, 2022 · 0 comments · Fixed by #188
Assignees

Comments

@peterbom
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant