mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-10 09:56:55 +00:00
20 lines
572 B
YAML
20 lines
572 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-hostpath.yaml
|
||
|
expected:
|
||
|
mutation:
|
||
|
patchedresource: test/output/pod-with-hostpath.yaml
|
||
|
policyresponse:
|
||
|
policy: annotate-emptydir-hostpath
|
||
|
resource:
|
||
|
kind: Pod
|
||
|
apiVersion: v1
|
||
|
namespace: ''
|
||
|
name: pod-with-hostpath
|
||
|
rules:
|
||
|
- name: host-path-add-safe-to-evict
|
||
|
type: Mutation
|
||
|
success: true
|
||
|
message: "successfully processed overlay"
|