-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Allow kyverno-policies to exclude resources #3051
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
Conversation
Fixes kyverno#2277 Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>
Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>
@realshuting I forget, do I bump the Helm chart version in the Pull Request or is that handled when tags are created? |
Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>
There is an issue with this that I need to resolve before merge, need to handle cases where policies have multiple rules and might want to exclude something from just one rule and not entire policy. |
Use match.any to allow for also having exclude.any Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>
Add extra information to comments Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>
Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>
I switched all policies to be |
Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>
@realshuting Hope it's okay to slate this for 1.6.1, rather than waiting for 1.7.0. This is a feature to Helm charts, no breaking changes. It also might be the case this is superseded by PR to get new pod security chart into 1.6.0 as I can just integrate these changes into that PR. |
This is replicated in #3126. This pull request was built against Kyverno 1.5.x charts so if this change is desired for Kyverno 1.5.x or charts 2.0.x then this would need to be targeted for 1.5 release branch. |
@treydock - Sorry I missed this change before. Is this still needed or we can close the PR? |
Can close. I only left open in case wanted to do this backport to 1.5 release. |
Related issue
Fixes #2277
Milestone of this PR
What type of PR is this
Proposed Changes
Allow individual policies managed by Helm to have custom excludes.
Proof Manifests
Added a Helm testing test YAML that is run by
ct install
during E2E tests.Checklist
Further Comments