mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-09 09:26:54 +00:00
23 lines
No EOL
718 B
YAML
23 lines
No EOL
718 B
YAML
# 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: empty-dir-add-safe-to-evict
|
|
type: Mutation
|
|
success: true
|
|
message: "successfully processed overlay"
|
|
- name: host-path-add-safe-to-evict
|
|
type: Mutation
|
|
success: false
|
|
message: "successfully processed overlay" |