2023-09-17 22:50:17 +02:00
|
|
|
apiVersion: cli.kyverno.io/v1alpha1
|
|
|
|
kind: Test
|
|
|
|
metadata:
|
|
|
|
name: kyverno-test.yaml
|
2022-12-07 13:35:05 +05:30
|
|
|
policies:
|
2023-09-01 17:50:11 +02:00
|
|
|
- policy.yaml
|
2022-12-07 13:35:05 +05:30
|
|
|
resources:
|
2023-09-01 17:50:11 +02:00
|
|
|
- resources.yaml
|
2022-12-07 13:35:05 +05:30
|
|
|
results:
|
2023-09-01 17:50:11 +02:00
|
|
|
- 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
|
2023-09-15 11:48:30 +02:00
|
|
|
- kind: Pod
|
|
|
|
policy: add-safe-to-evict
|
|
|
|
resources:
|
|
|
|
- pod-without-emptydir-hostpath
|
|
|
|
- pod-without-emptydir-hostpath-1
|
|
|
|
result: skip
|
|
|
|
rule: annotate-empty-dir
|