1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-07 00:17:13 +00:00
kyverno/test/scenarios/mutate/policy_mutate_endpoint.yaml
shivkumar dudhani 530ac6962c initial clean up
2019-10-14 12:36:19 -07:00

22 lines
No EOL
486 B
YAML

apiVersion : kyverno.io/v1alpha1
kind : ClusterPolicy
metadata :
name : policy-endpoints
spec :
rules:
- name: pEP
match:
resources:
kinds :
- Endpoints
selector:
matchLabels:
label : test
mutate:
patches:
- path : "/subsets/0/ports/0/port"
op : replace
value: 9663
- path : "/metadata/labels/isMutated"
op: add
value: "true"