1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-09 09:26:54 +00:00
kyverno/cmd/cli/kubectl-kyverno/_testdata/tests/test-1/kyverno-test.yaml
Charles-Edouard Brétéché 6a43ec4bcf
chore: fix policies (#8449)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-09-19 10:28:58 +00:00

16 lines
311 B
YAML

apiVersion: cli.kyverno.io/v1alpha1
kind: Test
metadata:
name: test-registry
policies:
- image-example.yaml
resources:
- resources.yaml
results:
- kind: Pod
policy: images
resources:
- test-pod-with-non-root-user-image
- test-pod-with-trusted-registry
result: pass
rule: only-allow-trusted-images