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

Add Support for .kubevalignore file #358

Open
rufreakde opened this issue Dec 7, 2022 · 2 comments
Open

Add Support for .kubevalignore file #358

rufreakde opened this issue Dec 7, 2022 · 2 comments

Comments

@rufreakde
Copy link

Hi there,
a tool like this - that can be used accross a lot of different repositories - would benefit in its flexibility by a lot if we could configure it to ignore specific files even if they are in the recursive list of resources.

Example scenario we have a repository with a lot of k8s files and this is fine but now we got additionally a kustomize patch and this is where it breaks.

echo "# Kubeval - Checking dev/"
kubeval  --ignore-missing-schemas --directories ./dev || exit 4

Ideally we would like to add a ".kubevalignore" with something like this:

# Match only directories containing kustomization or overlay
*kustomization*/
*overlay*/

This way we can ignore the patches and other kustomization that is not a valid manifest.

@rufreakde
Copy link
Author

rufreakde commented Dec 7, 2022

Currently teams have to define a path pattern for ignored folders e.g.

--ignored-path-patterns ".*kustomization.*"

This makes it hard to use the same pipeline CI task on many different teams.

@rdelpret
Copy link

@rufreakde I would also like a kubeval ignore file but for your use case, wouldn't you want to do a

kustomize build . | kubeval

to evaluate the final set of manifests?

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