diff --git a/examples/ConfigMapGenerator-SecretGenerator/policy-cm-test.yaml b/examples/ConfigMapGenerator-SecretGenerator/policy-cm-test.yaml new file mode 100644 index 0000000000..9e1056611b --- /dev/null +++ b/examples/ConfigMapGenerator-SecretGenerator/policy-cm-test.yaml @@ -0,0 +1,18 @@ +apiVersion : kubepolicy.nirmata.io/v1alpha1 +kind: Policy +metadata : + name: "policy-configmapgenerator-test" +spec: + rules: + - name: "Policy ConfigMap sample rule" + resource: + kind : Namespace + name: "ns2" + generate: + kind: ConfigMap + name: copied-cm + copyFrom: + namespace: default + name: game-config + data: + secretData: "data from cmg" \ No newline at end of file