From 5c71cc9d5834777653db2026ea0972acaadbbf89 Mon Sep 17 00:00:00 2001 From: shivdudhani Date: Mon, 3 Jun 2019 16:09:14 -0700 Subject: [PATCH] update test examples --- .../policy-cm-test.yaml | 6 ++---- .../policy-namespace-patch-cmgCG-sgCG.yaml | 18 ++++++++---------- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/test/ConfigMapGenerator-SecretGenerator/policy-cm-test.yaml b/test/ConfigMapGenerator-SecretGenerator/policy-cm-test.yaml index 3c33a44a25..fa4f831fff 100644 --- a/test/ConfigMapGenerator-SecretGenerator/policy-cm-test.yaml +++ b/test/ConfigMapGenerator-SecretGenerator/policy-cm-test.yaml @@ -14,8 +14,6 @@ spec: generate : kind: ConfigMap name : copied-cm - copyFrom : + clone: namespace : default - name : game-config - data : - secretData: "data from cmg" \ No newline at end of file + name : game-config \ No newline at end of file diff --git a/test/ConfigMapGenerator-SecretGenerator/policy-namespace-patch-cmgCG-sgCG.yaml b/test/ConfigMapGenerator-SecretGenerator/policy-namespace-patch-cmgCG-sgCG.yaml index 7272a9e56e..dd19f398af 100644 --- a/test/ConfigMapGenerator-SecretGenerator/policy-namespace-patch-cmgCG-sgCG.yaml +++ b/test/ConfigMapGenerator-SecretGenerator/policy-namespace-patch-cmgCG-sgCG.yaml @@ -32,11 +32,9 @@ spec : generate : kind: ConfigMap name : copied-cm - copyFrom : + clone: namespace : default name : game-config - data : - secretData: "data from cmg" - name: "generateCM" resource : @@ -49,13 +47,13 @@ spec : kind: ConfigMap name : generated-cm data : - secretData: "very sensitive data from cmg" - database: mongodb - database_uri: mongodb://localhost:27017 - - keys: | - image.public.key=771 - rsa.public.key=42 + data: + secretData: "very sensitive data from cmg" + database: mongodb + database_uri: mongodb://localhost:27017 + keys: | + image.public.key=771 + rsa.public.key=42 - name: "generateSecret" resource :