mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-10 01:46:55 +00:00
27 lines
606 B
YAML
27 lines
606 B
YAML
name: validate-service-loadbalancer
|
|
policies:
|
|
- policy.yaml
|
|
resources:
|
|
- resources.yaml
|
|
results:
|
|
- 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
|
|
- pod-without-emptydir-hostpath-1
|
|
result: skip
|
|
rule: annotate-empty-dir
|