1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +00:00
kyverno/definitions/examples/selector-policy.yaml
2019-03-19 21:32:31 +02:00

21 lines
401 B
YAML

apiVersion: policy.nirmata.io/v1alpha1
kind : Policy
metadata:
name: selector-policy
spec:
failurePolicy: continueOnError
rules:
- resource:
kind: ConfigMap
selector:
matchLabels:
label1: test1
matchExpressions:
- key: label2
operator: In
values:
- test2
patch:
- path: /
op : add
value : "20"