From b4bb7e0e698ad950cda48d5ed2694bb678df0d73 Mon Sep 17 00:00:00 2001 From: shuting Date: Tue, 14 May 2019 18:22:13 -0700 Subject: [PATCH] Add comfigmap generator example --- .../policy-cm-test.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 examples/ConfigMapGenerator-SecretGenerator/policy-cm-test.yaml 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