mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-09 17:37:12 +00:00
24 lines
449 B
YAML
24 lines
449 B
YAML
apiVersion: cli.kyverno.io/v1alpha1
|
|
kind: Test
|
|
metadata:
|
|
name: kyverno-test.yaml
|
|
policies:
|
|
- policies.yaml
|
|
resources:
|
|
- resources.yaml
|
|
results:
|
|
- kind: Pod
|
|
patchedResources: patched-resource.yaml
|
|
policy: foreach-json-patch
|
|
resources:
|
|
- nginx
|
|
result: pass
|
|
rule: add-security-context
|
|
- kind: Pod
|
|
patchedResources: pod-updated-image.yaml
|
|
policy: mutate-images
|
|
resources:
|
|
- mypod
|
|
result: pass
|
|
rule: test
|
|
variables: values.yaml
|