mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 16:06:56 +00:00
19 lines
454 B
YAML
19 lines
454 B
YAML
apiVersion : policy.nirmata.io/v1alpha1
|
|
kind : Policy
|
|
metadata :
|
|
name : policy-ingress
|
|
spec :
|
|
failurePolicy: stopOnError
|
|
rules:
|
|
- resource:
|
|
kind : Ingress
|
|
selector:
|
|
matchLabels:
|
|
originalLabel: isHere
|
|
patch:
|
|
- path: "/metadata/labels/isMutated"
|
|
op: add
|
|
value: "true"
|
|
- path : "/spec/rules/0/http/paths/0/path"
|
|
op : replace
|
|
value: "/mutatedpath"
|