mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-09 17:37:12 +00:00
30 lines
655 B
YAML
30 lines
655 B
YAML
apiVersion: cli.kyverno.io/v1alpha1
|
|
kind: Test
|
|
metadata:
|
|
name: kyverno-test.yaml
|
|
policies:
|
|
- policy.yaml
|
|
resources:
|
|
- resources.yaml
|
|
results:
|
|
- kind: Pod
|
|
patchedResources: patchedResource.yaml
|
|
policy: add-safe-to-evict
|
|
resources:
|
|
- pod-with-emptydir-hostpath
|
|
result: pass
|
|
rule: annotate-empty-dir
|
|
- kind: Pod
|
|
patchedResources: 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
|
|
- pod-without-emptydir-hostpath-1
|
|
result: skip
|
|
rule: annotate-empty-dir
|