1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 16:06:56 +00:00
kyverno/test/cli/registry/kyverno-test.yaml

23 lines
447 B
YAML
Raw Normal View History

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