From 5745d030fbe9f5511f632c703f37d90d8285ea57 Mon Sep 17 00:00:00 2001 From: Yann Date: Thu, 11 Oct 2018 09:14:06 +0200 Subject: [PATCH] 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).