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

ignore-test test pods #548

Open
drewwells opened this issue Aug 2, 2023 · 4 comments
Open

ignore-test test pods #548

drewwells opened this issue Aug 2, 2023 · 4 comments

Comments

@drewwells
Copy link

Which version of kube-score are you using?
latest

Add the ability to ignore pods as part of helm test only.

@zegl
Copy link
Owner

zegl commented Aug 2, 2023

Hey,

Could you please share a more detailed example of what you want to do?

@drewwells
Copy link
Author

Sure thing, some charts have test containers that are included as part of manifests. I want to be able to ignore any kube failures inside just those files. Helm test files must be in a test folder https://helm.sh/docs/topics/chart_tests/#example-test

It appears you can also use annotations to define some files as only used for tests. These pods are short lived, so they don't have the same stringent requirements as a long running pod for cpu/memory usage.

@zegl
Copy link
Owner

zegl commented Aug 4, 2023

Cool, thanks for the link! Just to verify, the idea is that objects with a "helm.sh/hook": "test" annotation should be ignored by kube-score?

@drewwells
Copy link
Author

drewwells commented Aug 4, 2023 via email

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