1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-07 00:17:13 +00:00
kyverno/test/policy/mutate/policy_mutate_endpoint.yaml
2019-11-13 13:56:20 -08:00

22 lines
No EOL
480 B
YAML

apiVersion : kyverno.io/v1
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"