1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-09 09:26:54 +00:00
kyverno/test/conformance/kuttl/validate/e2e/trusted-images
Charles-Edouard Brétéché 70b0f99f5e
chore: improve a few kuttl tests using shouldFail instead of commands (#6791)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-04-05 15:47:01 +00:00
..
01-policy.yaml
02-create-good.yaml
03-create-bad.yaml chore: improve a few kuttl tests using shouldFail instead of commands (#6791) 2023-04-05 15:47:01 +00:00
bad.yaml
policy-ready.yaml
policy.yaml
README.md

Description

This test is migrated from e2e. It tests an imageRegistry context lookup for a "real" image and states that an image built to run as root can only come from GHCR.

Expected Behavior

If an image is built to run as root user and it does NOT come from GHCR, the Pod is blocked. If it either isn't built to run as root OR it is built to run as root and does come from GHCR, it is allowed.

Reference Issue(s)

N/A