mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
21 lines
403 B
YAML
21 lines
403 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
|
|
patches:
|
|
- path: /
|
|
op : add
|
|
value : "20"
|