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

Provide an --exclude command line argument to exclude some patterns or files #249

Open
arthurzenika opened this issue Aug 10, 2020 · 4 comments · May be fixed by #252
Open

Provide an --exclude command line argument to exclude some patterns or files #249

arthurzenika opened this issue Aug 10, 2020 · 4 comments · May be fixed by #252

Comments

@arthurzenika
Copy link

Hey, kubeval looks really useful. We're adding it to our heptapod/gitlab CI. It's as simple as

kubeval:
  image: garethr/kubeval
  script:
    - kubeval --directories .

We use kustomize https://kustomize.io/ so we have a bunch of kustomization.yaml which fail the test. Since we also store the resulting generated files in our repos, we'd like to be able to run kubeval --directories . --exclude kustomization.yaml

@arthurzenika
Copy link
Author

Our workaround for now is :

kubeval:
  image: garethr/kubeval
  script:
    - rm */*/kustomization.yaml
    - kubeval --directories . 

@joshuaspence
Copy link

You should be able to use --ignored-filename-patterns

arthurzenika added a commit to arthurzenika/kubeval that referenced this issue Aug 18, 2020
@arthurzenika
Copy link
Author

@johanneswuerbach thanks ! It works. I've added a mention of that option in the documentation.

@John-Lin
Copy link

--ignored-filename-patterns feature seems in the next release...

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.

3 participants