mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-10 09:56:55 +00:00
* fix auth checks with apiVersion and subresource Signed-off-by: ShutingZhao <shuting@nirmata.com> * add kuttl tests Signed-off-by: ShutingZhao <shuting@nirmata.com> * remove duplicate code Signed-off-by: ShutingZhao <shuting@nirmata.com> * update permissions Signed-off-by: ShutingZhao <shuting@nirmata.com> --------- Signed-off-by: ShutingZhao <shuting@nirmata.com> |
||
---|---|---|
.. | ||
01-crd.yaml | ||
01-update-clusterrole.yaml | ||
02-check.yaml | ||
03-delete.yaml | ||
04-delete.yaml | ||
policy-cluster-target.yaml | ||
policy-namespaced-target.yaml | ||
policy-pass.yaml | ||
README.md |
Description
This test ensures that the target namespace must be set for namespace-scoped target resource, and must not be set for cluster-wide target resources.
Expected Behavior
The test fails if the policy creation is allowed, otherwise passes.
Reference Issue(s)
https://github.com/kyverno/kyverno/issues/7038 https://github.com/kyverno/kyverno/issues/7470