1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-09 17:37:12 +00:00
kyverno/test/scenarios/samples/best_practices/scenario_mutate_safe-to-evict.yaml

19 lines
562 B
YAML
Raw Normal View History

2019-11-04 17:55:13 -08:00
# file path is relative to project root
input:
policy: samples/best_practices/add_safe-to-evict_annotation.yaml
resource: test/resources/pod-with-emptydir.yaml
expected:
mutation:
patchedresource: test/output/pod-with-emptydir.yaml
policyresponse:
policy: annotate-emptyDir
resource:
kind: Pod
apiVersion: v1
namespace: ''
name: pod-with-emptydir
rules:
- name: add-safe-to-evict-annotation
type: Mutation
success: true
message: "succesfully processed overlay"