Infra 39554: Update make kyverno/test
to use PolicyExceptions
#198
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This MR requires the latest version of kyverno-cli (tested against 1.13.4)
It allows
make kyverno/test
to be run locally (and in CI), without the need for deploying a k3d/kind cluster (so speeds up jobs).kyverno-cli
now supports passing through--exceptions
which means this helper can be run locally.The change is:
ClusterPolicy
manifests to remove the.metadata.namespace
field. This is an issue with how we generated the rendered manifests with Tanka. This previously was not an issue as the tests were run in a k8s cluster. It's an issue now as the policies do not match as they are namespaced (probably a bug in kyverno...)kyverno apply
to pass in--exceptions
and also configure the output to--table