1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-09 17:37:12 +00:00
kyverno/test/conformance/kuttl/generate/validation/clusterpolicy/target-namespace-scope
shuting 9cac3698ec
validate target resource scope & namespace settings (#7098)
Signed-off-by: ShutingZhao <shuting@nirmata.com>
2023-05-05 11:08:08 +00:00
..
01-fail.yaml validate target resource scope & namespace settings (#7098) 2023-05-05 11:08:08 +00:00
policy-cluster-target.yaml validate target resource scope & namespace settings (#7098) 2023-05-05 11:08:08 +00:00
policy-namespaced-target.yaml validate target resource scope & namespace settings (#7098) 2023-05-05 11:08:08 +00:00
README.md validate target resource scope & namespace settings (#7098) 2023-05-05 11:08:08 +00:00

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