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

Feature: Ignore tests via object annotations #85

Closed
zegl opened this issue Jan 12, 2019 · 1 comment
Closed

Feature: Ignore tests via object annotations #85

zegl opened this issue Jan 12, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@zegl
Copy link
Owner

zegl commented Jan 12, 2019

Currently it's only possible to ignore a test on the whole test run, with the --ignore-test flag.

My suggestion of how to get more fine controlled ignores, is to add annotation support for this.

kube-score can look for the annotation kube-score/ignore in every object that it's parsing, and ignore the tests for only that object.

A full example would look like this:

version: v1
kind: Service
metadata:
  annotations:
    kube-score/ignore: service-type,stable-version
@zegl zegl added the enhancement New feature or request label Jan 12, 2019
@zegl
Copy link
Owner Author

zegl commented Jan 13, 2019

This was fixed in #87

@zegl zegl closed this as completed Jan 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant