1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-10 09:56:55 +00:00
kyverno/test/cli/test-mutate/global-anchor/kyverno-test.yaml
Charles-Edouard Brétéché 9f108b11cd
feat: add fix test cli command (#8213)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-09-01 15:50:11 +00:00

32 lines
701 B
YAML

name: validate-service-loadbalancer
policies:
- policy.yaml
resources:
- resources.yaml
results:
- kind: Pod
policy: add-safe-to-evict
resources:
- pod-without-emptydir-hostpath
result: skip
rule: annotate-empty-dir
- kind: Pod
patchedResource: patchedResource.yaml
policy: add-safe-to-evict
resources:
- pod-with-emptydir-hostpath
result: pass
rule: annotate-empty-dir
- kind: Pod
patchedResource: patchedResourceWithVolume.yaml
policy: add-safe-to-evict
resources:
- pod-with-emptydir-hostpath-1
result: pass
rule: annotate-empty-dir
- kind: Pod
policy: add-safe-to-evict
resources:
- pod-without-emptydir-hostpath-1
result: skip
rule: annotate-empty-dir