diff --git a/examples/ConfigMap/policy-ConfigMap.yaml b/examples/ConfigMap/policy-ConfigMap.yaml index 47dbf58ecc..10af719567 100644 --- a/examples/ConfigMap/policy-ConfigMap.yaml +++ b/examples/ConfigMap/policy-ConfigMap.yaml @@ -1,19 +1,20 @@ -apiVersion : policy.nirmata.io/v1alpha1 -kind : Policy +apiVersion : kubepolicy.nirmata.io/v1alpha1 +kind: Policy metadata : - name : policy-test -spec : - failurePolicy: stopOnError + name: policy-configmap-test +spec: rules: - - resource: - kind : ConfigMap - name: "game-config" - patch: - - path : "/data/newKey" - op : add - value : newValue - - path : "/data/secretData" - op : remove - - path : "/data/secretDatatoreplace" - op : replace - value : "data is replaced" + - name: "Policy ConfigMap sample rule" + resource: + kind : ConfigMap + name: "game-config" + mutate: + patches: + - path: "/data/newKey" + op: add + value: newValue + - path: "/data/secretData" + op: remove + - path: "/data/secretDatatoreplace" + op: replace + value: "data is replaced"