1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-10 18:06:55 +00:00
kyverno/test/conformance/kuttl/generate/validation/policy/target-namespace-scope
shuting 5ce80c4e68
fix: target scope validation for the generate rule (#7479)
* fix target scope validation for generate

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* add kuttl tests

Signed-off-by: ShutingZhao <shuting@nirmata.com>

---------

Signed-off-by: ShutingZhao <shuting@nirmata.com>
2023-06-13 10:26:56 +00:00
..
01-crd.yaml fix: target scope validation for the generate rule (#7479) 2023-06-13 10:26:56 +00:00
02-check.yaml fix: target scope validation for the generate rule (#7479) 2023-06-13 10:26:56 +00:00
03-delete.yaml fix: target scope validation for the generate rule (#7479) 2023-06-13 10:26:56 +00:00
policy-fail-0.yaml fix: target scope validation for the generate rule (#7479) 2023-06-13 10:26:56 +00:00
policy-fail-1.yaml fix: target scope validation for the generate rule (#7479) 2023-06-13 10:26:56 +00:00
policy-fail-2.yaml fix: target scope validation for the generate rule (#7479) 2023-06-13 10:26:56 +00:00
policy-fail-3.yaml fix: target scope validation for the generate rule (#7479) 2023-06-13 10:26:56 +00:00
policy-pass.yaml fix: target scope validation for the generate rule (#7479) 2023-06-13 10:26:56 +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 the namespaced policy.

Expected Behavior

The test fails if the policy creation is allowed, otherwise passes.

Reference Issue(s)

https://github.com/kyverno/kyverno/issues/7038