From 5745d030fbe9f5511f632c703f37d90d8285ea57 Mon Sep 17 00:00:00 2001 From: Yann Date: Thu, 11 Oct 2018 09:14:06 +0200 Subject: [PATCH 1/2] Add literals in configMapGenerator example --- docs/kustomization.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/kustomization.yaml b/docs/kustomization.yaml index 9e8dae513..dec9e6f6e 100644 --- a/docs/kustomization.yaml +++ b/docs/kustomization.yaml @@ -63,13 +63,18 @@ resources: # Each entry in this list results in the creation of # one ConfigMap resource (it's a generator of n maps). -# The example below creates a ConfigMap with the -# names and contents of the given files. +# The example below creates two ConfigMaps. One with the +# names and contents of the given files, the other with +# key/value as data. configMapGenerator: - name: myJavaServerProps files: - application.properties - more.properties +- name: myJavaServerEnvVars + literals: + - JAVA_HOME=/opt/java/jdk + - JAVA_TOOL_OPTIONS=-agentlib:hprof # Each entry in this list results in the creation of # one Secret resource (it's a generator of n secrets). From 2d26d95a9803b3dcdc4d4f649ad1478b5819d163 Mon Sep 17 00:00:00 2001 From: Yann Date: Thu, 11 Oct 2018 09:16:14 +0200 Subject: [PATCH 2/2] fix indent --- docs/kustomization.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/kustomization.yaml b/docs/kustomization.yaml index dec9e6f6e..704701217 100644 --- a/docs/kustomization.yaml +++ b/docs/kustomization.yaml @@ -73,8 +73,8 @@ configMapGenerator: - more.properties - name: myJavaServerEnvVars literals: - - JAVA_HOME=/opt/java/jdk - - JAVA_TOOL_OPTIONS=-agentlib:hprof + - JAVA_HOME=/opt/java/jdk + - JAVA_TOOL_OPTIONS=-agentlib:hprof # Each entry in this list results in the creation of # one Secret resource (it's a generator of n secrets).