1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-09 09:26:54 +00:00
kyverno/test/conformance/chainsaw/exceptions/multiple-exceptions-with-pod-security
Charles-Edouard Brétéché df267dd829
chore: use more chainsaw step templates (#11311)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2024-10-03 11:56:30 +00:00
..
chainsaw-test.yaml chore: use more chainsaw step templates (#11311) 2024-10-03 11:56:30 +00:00
exceptions.yaml fix: return all the exceptions that match the incoming resource (#10722) 2024-07-25 17:36:19 +00:00
pod.yaml fix: return all the exceptions that match the incoming resource (#10722) 2024-07-25 17:36:19 +00:00
policy.yaml fix: return all the exceptions that match the incoming resource (#10722) 2024-07-25 17:36:19 +00:00
README.md fix: return all the exceptions that match the incoming resource (#10722) 2024-07-25 17:36:19 +00:00

Description

This test creates two policy exceptions that match the same policy. It is expected that the pod that satisfies both exceptions will be created successfully.

Expected Behavior

  1. Create a policy that applies the baseline profile.

  2. Create two exceptions for the init containters as follows:

    • The first exception init1-exception-baseline allows the values of NET_ADMIN and NET_RAW capabilities in the init containers.
    • The second exception init2-exception-baseline allows the values of SYS_TIME capabilities in the init containers.
  3. Create a pod with two init containers. The first init container should have the NET_ADMIN and NET_RAW capabilities, and the second init container should have the SYS_TIME capability. It is expected that the pod will be created successfully as it matches both exceptions.

Reference Issue(s)

#10580