1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-09 01:16:55 +00:00
kyverno/examples/PersistentVolumeClaim/policy-PVC.yaml

18 lines
419 B
YAML
Raw Normal View History

apiVersion : policy.nirmata.io/v1alpha1
kind : Policy
metadata :
name : policy-pvc
spec :
failurePolicy: stopOnError
rules:
- resource:
kind : PersistentVolumeClaim
matchLabels:
originalLabel: isHere
patch:
- path: "/metadata/labels/originalLabel"
op: remove
- path : "/spec/resources/requests/storage"
op : replace
value: "6Gi"