mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
df267dd829
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> |
||
---|---|---|
.. | ||
chainsaw-test.yaml | ||
exception.yaml | ||
excluded-pod.yaml | ||
policy.yaml | ||
README.md |
Description
This test makes sure that policy exception matches Pod/epehemeralcontainers
resource by default in case it matches Pods.
Expected Behavior
-
Create a policy that matches Pods and restrict setting
runAsNonRoot
totrue
. -
Create an exception that excludes Pods from the policy.
-
Create a Pod that violates the policy. It is expected that the Pod will be created successfully as it matches the exception.
-
Run
kubectl debug
command to attach to the Pod. It is expected that the command will run successfully since exceptions matchPod/ephemeralcontainers
resource by default.
Reference Issue(s)
#9484