diff --git a/docs/api-reference/glossary/index.html b/docs/api-reference/glossary/index.html
index 352d7039f..a741f9b70 100644
--- a/docs/api-reference/glossary/index.html
+++ b/docs/api-reference/glossary/index.html
@@ -3,7 +3,7 @@
-
+
@@ -911,8 +911,8 @@ absolute path, or by relative path.
B may not depend on A, even transitively.
A may contain B, but in this case it might be
-simplest to have A directly depend on B‘s
-resources and eliminate B‘s kustomization.yaml file
+simplest to have A directly depend on B’s
+resources and eliminate B’s kustomization.yaml file
(i.e. absorb B into A).
Conventionally, B is in a directory that’s sibling
to A, or B is off in a completely independent
diff --git a/docs/api-reference/index.html b/docs/api-reference/index.html
index 9a6c56f21..02023eb3e 100644
--- a/docs/api-reference/index.html
+++ b/docs/api-reference/index.html
@@ -3,7 +3,7 @@
-
+
diff --git a/docs/api-reference/kustomization/bases/index.html b/docs/api-reference/kustomization/bases/index.html
index 506c65f08..d0d63ebe0 100644
--- a/docs/api-reference/kustomization/bases/index.html
+++ b/docs/api-reference/kustomization/bases/index.html
@@ -3,7 +3,7 @@
-
+
diff --git a/docs/api-reference/kustomization/commonannotations/index.html b/docs/api-reference/kustomization/commonannotations/index.html
index aa289a555..4d9307aab 100644
--- a/docs/api-reference/kustomization/commonannotations/index.html
+++ b/docs/api-reference/kustomization/commonannotations/index.html
@@ -3,7 +3,7 @@
-
+
diff --git a/docs/api-reference/kustomization/commonlabels/index.html b/docs/api-reference/kustomization/commonlabels/index.html
index 0b9a8b751..a6d1c0903 100644
--- a/docs/api-reference/kustomization/commonlabels/index.html
+++ b/docs/api-reference/kustomization/commonlabels/index.html
@@ -3,7 +3,7 @@
-
+
diff --git a/docs/api-reference/kustomization/components/index.html b/docs/api-reference/kustomization/components/index.html
index 50b2a9df4..7f39afaf8 100644
--- a/docs/api-reference/kustomization/components/index.html
+++ b/docs/api-reference/kustomization/components/index.html
@@ -3,7 +3,7 @@
-
+
diff --git a/docs/api-reference/kustomization/configmapgenerator/index.html b/docs/api-reference/kustomization/configmapgenerator/index.html
index dbc695dbc..b59c45e3a 100644
--- a/docs/api-reference/kustomization/configmapgenerator/index.html
+++ b/docs/api-reference/kustomization/configmapgenerator/index.html
@@ -3,7 +3,7 @@
-
+
@@ -748,9 +748,13 @@
Generate ConfigMap 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 three ConfigMaps. One with the names and contents of
-the given files, one with key/value as data, and a third which sets an
-annotation and label via options for that single ConfigMap.
+The example below creates four ConfigMaps:
+
+- first, with the names and contents of the given files
+- second, with key/value as data using key/value pairs from files
+- third, also with key/value as data, directly specified using
literals
+- and a fourth, which sets an annotation and label via
options for that single ConfigMap
+
Each configMapGenerator item accepts a parameter of
behavior: [create|replace|merge].
This allows an overlay to modify or
@@ -780,8 +784,12 @@ trump any attempt to locally override it.
files:
- application.properties
- more.properties
+- name: my-java-server-env-file-vars
+ envs:
+ - my-server-env.properties
+ - more-server-props.env
- name: my-java-server-env-vars
- literals:
+ literals:
- JAVA_HOME=/opt/java/jdk
- JAVA_TOOL_OPTIONS=-agentlib:hprof
options:
diff --git a/docs/api-reference/kustomization/crds/index.html b/docs/api-reference/kustomization/crds/index.html
index bd8b7d090..d45b3768c 100644
--- a/docs/api-reference/kustomization/crds/index.html
+++ b/docs/api-reference/kustomization/crds/index.html
@@ -3,7 +3,7 @@
-
+
diff --git a/docs/api-reference/kustomization/generatoroptions/index.html b/docs/api-reference/kustomization/generatoroptions/index.html
index 32fff010c..e9eb38507 100644
--- a/docs/api-reference/kustomization/generatoroptions/index.html
+++ b/docs/api-reference/kustomization/generatoroptions/index.html
@@ -3,7 +3,7 @@
-
+
diff --git a/docs/api-reference/kustomization/images/index.html b/docs/api-reference/kustomization/images/index.html
index 9473f2599..80308c4a7 100644
--- a/docs/api-reference/kustomization/images/index.html
+++ b/docs/api-reference/kustomization/images/index.html
@@ -3,7 +3,7 @@
-
+
diff --git a/docs/api-reference/kustomization/index.html b/docs/api-reference/kustomization/index.html
index 6778097a7..28c657e5f 100644
--- a/docs/api-reference/kustomization/index.html
+++ b/docs/api-reference/kustomization/index.html
@@ -3,7 +3,7 @@
-
+
diff --git a/docs/api-reference/kustomization/index.xml b/docs/api-reference/kustomization/index.xml
index 735cc0c4a..c8f276610 100644
--- a/docs/api-reference/kustomization/index.xml
+++ b/docs/api-reference/kustomization/index.xml
@@ -199,9 +199,13 @@ resource has been applied to a cluster.</p>
<p>Each entry in this list results in the creation of
one ConfigMap resource (it’s a generator of n maps).</p>
-<p>The example below creates three ConfigMaps. One with the names and contents of
-the given files, one with key/value as data, and a third which sets an
-annotation and label via <code>options</code> for that single ConfigMap.</p>
+<p>The example below creates four ConfigMaps:</p>
+<ul>
+<li>first, with the names and contents of the given files</li>
+<li>second, with key/value as data using key/value pairs from files</li>
+<li>third, also with key/value as data, directly specified using <code>literals</code></li>
+<li>and a fourth, which sets an annotation and label via <code>options</code> for that single ConfigMap</li>
+</ul>
<p>Each configMapGenerator item accepts a parameter of
<code>behavior: [create|replace|merge]</code>.
This allows an overlay to modify or
@@ -231,8 +235,12 @@ trump any attempt to locally override it.</p>
</span><span style="color:#f8f8f8;text-decoration:underline"> </span><span style="color:#204a87;font-weight:bold">files</span><span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline">
</span><span style="color:#f8f8f8;text-decoration:underline"> </span>- application.properties<span style="color:#f8f8f8;text-decoration:underline">
</span><span style="color:#f8f8f8;text-decoration:underline"> </span>- more.properties<span style="color:#f8f8f8;text-decoration:underline">
+</span><span style="color:#f8f8f8;text-decoration:underline"></span>- <span style="color:#204a87;font-weight:bold">name</span><span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline"> </span>my-java-server-env-file-vars<span style="color:#f8f8f8;text-decoration:underline">
+</span><span style="color:#f8f8f8;text-decoration:underline"> </span><span style="color:#204a87;font-weight:bold">envs</span><span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline">
+</span><span style="color:#f8f8f8;text-decoration:underline"> </span>- my-server-env.properties<span style="color:#f8f8f8;text-decoration:underline">
+</span><span style="color:#f8f8f8;text-decoration:underline"> </span>- more-server-props.env<span style="color:#f8f8f8;text-decoration:underline">
</span><span style="color:#f8f8f8;text-decoration:underline"></span>- <span style="color:#204a87;font-weight:bold">name</span><span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline"> </span>my-java-server-env-vars<span style="color:#f8f8f8;text-decoration:underline">
-</span><span style="color:#f8f8f8;text-decoration:underline"> </span>literals<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline">
+</span><span style="color:#f8f8f8;text-decoration:underline"> </span><span style="color:#204a87;font-weight:bold">literals</span><span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline">
</span><span style="color:#f8f8f8;text-decoration:underline"> </span>- JAVA_HOME=/opt/java/jdk<span style="color:#f8f8f8;text-decoration:underline">
</span><span style="color:#f8f8f8;text-decoration:underline"> </span>- JAVA_TOOL_OPTIONS=-agentlib<span style="color:#000;font-weight:bold">:</span>hprof<span style="color:#f8f8f8;text-decoration:underline">
</span><span style="color:#f8f8f8;text-decoration:underline"> </span><span style="color:#204a87;font-weight:bold">options</span><span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline">
@@ -774,7 +782,7 @@ resources.</p>
supported. No ints, bools, arrays etc. It’s not
possible to, say, extract the name of the image in
container number 2 of some pod template.</p>
-<p>A variable reference, i.e. the string ‘$(FOO)',
+<p>A variable reference, i.e. the string ‘$(FOO)’,
can only be placed in particular fields of
particular objects as specified by kustomize’s
configuration data.</p>
diff --git a/docs/api-reference/kustomization/nameprefix/index.html b/docs/api-reference/kustomization/nameprefix/index.html
index 6d9998cdb..862446fcb 100644
--- a/docs/api-reference/kustomization/nameprefix/index.html
+++ b/docs/api-reference/kustomization/nameprefix/index.html
@@ -3,7 +3,7 @@
-
+
diff --git a/docs/api-reference/kustomization/namespace/index.html b/docs/api-reference/kustomization/namespace/index.html
index bf821e85c..5f7e4d0a5 100644
--- a/docs/api-reference/kustomization/namespace/index.html
+++ b/docs/api-reference/kustomization/namespace/index.html
@@ -3,7 +3,7 @@
-
+
diff --git a/docs/api-reference/kustomization/namesuffix/index.html b/docs/api-reference/kustomization/namesuffix/index.html
index ab0243d46..c3b02e04b 100644
--- a/docs/api-reference/kustomization/namesuffix/index.html
+++ b/docs/api-reference/kustomization/namesuffix/index.html
@@ -3,7 +3,7 @@
-
+
diff --git a/docs/api-reference/kustomization/patches/index.html b/docs/api-reference/kustomization/patches/index.html
index 7d23674cd..b13b13921 100644
--- a/docs/api-reference/kustomization/patches/index.html
+++ b/docs/api-reference/kustomization/patches/index.html
@@ -3,7 +3,7 @@
-
+
@@ -506,10 +506,10 @@
files:
- application.properties
- more.properties
+- name: my-java-server-env-file-vars
+ envs:
+ - my-server-env.properties
+ - more-server-props.env
- name: my-java-server-env-vars
- literals:
+ literals:
- JAVA_HOME=/opt/java/jdk
- JAVA_TOOL_OPTIONS=-agentlib:hprof
options:
diff --git a/docs/zh/api-reference/kustomization/crds/index.html b/docs/zh/api-reference/kustomization/crds/index.html
index e44965198..614bf1534 100644
--- a/docs/zh/api-reference/kustomization/crds/index.html
+++ b/docs/zh/api-reference/kustomization/crds/index.html
@@ -3,7 +3,7 @@
-
+
diff --git a/docs/zh/api-reference/kustomization/generatoroptions/index.html b/docs/zh/api-reference/kustomization/generatoroptions/index.html
index fa6a61479..dcb3c79ec 100644
--- a/docs/zh/api-reference/kustomization/generatoroptions/index.html
+++ b/docs/zh/api-reference/kustomization/generatoroptions/index.html
@@ -3,7 +3,7 @@
-
+
diff --git a/docs/zh/api-reference/kustomization/images/index.html b/docs/zh/api-reference/kustomization/images/index.html
index 4b5a1b8e2..4b929dbc3 100644
--- a/docs/zh/api-reference/kustomization/images/index.html
+++ b/docs/zh/api-reference/kustomization/images/index.html
@@ -3,7 +3,7 @@
-
+
diff --git a/docs/zh/api-reference/kustomization/index.html b/docs/zh/api-reference/kustomization/index.html
index 71b460dcc..545feb379 100644
--- a/docs/zh/api-reference/kustomization/index.html
+++ b/docs/zh/api-reference/kustomization/index.html
@@ -3,7 +3,7 @@
-
+
diff --git a/docs/zh/api-reference/kustomization/index.xml b/docs/zh/api-reference/kustomization/index.xml
index f47717d81..d1e591406 100644
--- a/docs/zh/api-reference/kustomization/index.xml
+++ b/docs/zh/api-reference/kustomization/index.xml
@@ -192,7 +192,13 @@
<p>列表中的每个条目都将生成一个 ConfigMap (合计可以生成 n 个 ConfigMap)。</p>
-<p>下面的示例会生成 3 个ConfigMap:第一个带有给定文件的名称和内容,第二个将在 data 中添加 key/value,第三个通过 <code>options</code> 为单个 ConfigMap 设置注释和标签。</p>
+<p>以下示例创建四个 ConfigMap:</p>
+<ul>
+<li>第一个使用给定文件的名称和内容创建数据</li>
+<li>第二个使用文件中的键/值对将数据创建为键/值</li>
+<li>第三个使用 <code>literals</code> 中的键/值对创建数据作为键/值</li>
+<li>第四个通过 <code>options</code> 设置单个 ConfigMap 的注释和标签</li>
+</ul>
<p>每个 configMapGenerator 项均接受的参数 <code>behavior: [create|replace|merge]</code>,这个参数允许修改或替换父级现有的 configMap。</p>
<p>此外,每个条目都有一个 <code>options</code> 字段,该字段具有与 kustomization 文件的 <code>generatorOptions</code> 字段相同的子字段。</p>
<p><code>options</code> 字段允许用户为生成的实例添加标签和(或)注释,或者分别禁用该实例名称的哈希后缀。此处添加的标签和注释不会被 kustomization 文件 <code>generatorOptions</code> 字段关联的全局选项覆盖。但是如果全局 <code>generatorOptions</code> 字段指定 <code>disableNameSuffixHash: true</code>,其他 <code>options</code> 的设置将无法将其覆盖。</p>
@@ -210,8 +216,12 @@
</span><span style="color:#f8f8f8;text-decoration:underline"> </span><span style="color:#204a87;font-weight:bold">files</span><span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline">
</span><span style="color:#f8f8f8;text-decoration:underline"> </span>- application.properties<span style="color:#f8f8f8;text-decoration:underline">
</span><span style="color:#f8f8f8;text-decoration:underline"> </span>- more.properties<span style="color:#f8f8f8;text-decoration:underline">
+</span><span style="color:#f8f8f8;text-decoration:underline"></span>- <span style="color:#204a87;font-weight:bold">name</span><span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline"> </span>my-java-server-env-file-vars<span style="color:#f8f8f8;text-decoration:underline">
+</span><span style="color:#f8f8f8;text-decoration:underline"> </span><span style="color:#204a87;font-weight:bold">envs</span><span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline">
+</span><span style="color:#f8f8f8;text-decoration:underline"> </span>- my-server-env.properties<span style="color:#f8f8f8;text-decoration:underline">
+</span><span style="color:#f8f8f8;text-decoration:underline"> </span>- more-server-props.env<span style="color:#f8f8f8;text-decoration:underline">
</span><span style="color:#f8f8f8;text-decoration:underline"></span>- <span style="color:#204a87;font-weight:bold">name</span><span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline"> </span>my-java-server-env-vars<span style="color:#f8f8f8;text-decoration:underline">
-</span><span style="color:#f8f8f8;text-decoration:underline"> </span>literals<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline">
+</span><span style="color:#f8f8f8;text-decoration:underline"> </span><span style="color:#204a87;font-weight:bold">literals</span><span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline">
</span><span style="color:#f8f8f8;text-decoration:underline"> </span>- JAVA_HOME=/opt/java/jdk<span style="color:#f8f8f8;text-decoration:underline">
</span><span style="color:#f8f8f8;text-decoration:underline"> </span>- JAVA_TOOL_OPTIONS=-agentlib<span style="color:#000;font-weight:bold">:</span>hprof<span style="color:#f8f8f8;text-decoration:underline">
</span><span style="color:#f8f8f8;text-decoration:underline"> </span><span style="color:#204a87;font-weight:bold">options</span><span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline">
diff --git a/docs/zh/api-reference/kustomization/nameprefix/index.html b/docs/zh/api-reference/kustomization/nameprefix/index.html
index fb45b551c..13df34af3 100644
--- a/docs/zh/api-reference/kustomization/nameprefix/index.html
+++ b/docs/zh/api-reference/kustomization/nameprefix/index.html
@@ -3,7 +3,7 @@
-
+
diff --git a/docs/zh/api-reference/kustomization/namespace/index.html b/docs/zh/api-reference/kustomization/namespace/index.html
index 208b90473..b7f1a57fb 100644
--- a/docs/zh/api-reference/kustomization/namespace/index.html
+++ b/docs/zh/api-reference/kustomization/namespace/index.html
@@ -3,7 +3,7 @@
-
+
diff --git a/docs/zh/api-reference/kustomization/namesuffix/index.html b/docs/zh/api-reference/kustomization/namesuffix/index.html
index b3bcdcddf..d70044c2e 100644
--- a/docs/zh/api-reference/kustomization/namesuffix/index.html
+++ b/docs/zh/api-reference/kustomization/namesuffix/index.html
@@ -3,7 +3,7 @@
-
+
diff --git a/docs/zh/api-reference/kustomization/patches/index.html b/docs/zh/api-reference/kustomization/patches/index.html
index d95d74f1a..e3121d33f 100644
--- a/docs/zh/api-reference/kustomization/patches/index.html
+++ b/docs/zh/api-reference/kustomization/patches/index.html
@@ -3,7 +3,7 @@
-
+
@@ -506,10 +506,10 @@