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

CNSI is not capturing Workload of kind cronJob. #197

Open
bgubbala opened this issue Mar 7, 2023 · 3 comments
Open

CNSI is not capturing Workload of kind cronJob. #197

bgubbala opened this issue Mar 7, 2023 · 3 comments

Comments

@bgubbala
Copy link
Contributor

bgubbala commented Mar 7, 2023

Environment
Platform: Kubernetes
Kubernetes/Platform Version(s):

Describe the bug
During the Governor exporter found that CNSI is not capturing the Workload of kind cronJob. Instead, it is listing each job of cronJob as a separate Workload of kind Job.
There was no grouping of containers under a single workload of kind CronJob.

To Reproduce
Steps to reproduce the behavior:

  1. Create a cronJob
  2. check the workloads of the cnsi agent.

Expected behavior and actual behavior:
There has to be a grouping of Job containers of cronJob as a single workload of kind CronJob.

@4everming
Copy link
Contributor

4everming commented Mar 8, 2023

Currently, the workload in the scanning reports is a struct like this:

The pods in Cronjob have been captured but not grouped by the CronJob kind, right?

@bgubbala
Copy link
Contributor Author

bgubbala commented Mar 8, 2023

yes

@4everming
Copy link
Contributor

yes

As we discussed, probably we can organize the workload struct as we need in the new kind of inspector which is designed for collecting and sending the telemetry to VAC.

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

No branches or pull requests

2 participants