mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
Merge pull request #1618 from seriousben/add-configmap-key-example
doc: add configmap generator key example
This commit is contained in:
@@ -15,8 +15,10 @@ Kustomize provides two ways of adding ConfigMap in one `kustomization`, either b
|
|||||||
> configMapGenerator:
|
> configMapGenerator:
|
||||||
> - name: a-configmap
|
> - name: a-configmap
|
||||||
> files:
|
> files:
|
||||||
|
> # configfile is used as key
|
||||||
> - configs/configfile
|
> - configs/configfile
|
||||||
> - configs/another_configfile
|
> # configkey is used as key
|
||||||
|
> - configkey=configs/another_configfile
|
||||||
> ```
|
> ```
|
||||||
|
|
||||||
The ConfigMaps declared as [resource] are treated the same way as other resources. Kustomize doesn't append any hash to the ConfigMap name. The ConfigMap declared from a ConfigMapGenerator is treated differently. A hash is appended to the name and any change in the ConfigMap will trigger a rolling update.
|
The ConfigMaps declared as [resource] are treated the same way as other resources. Kustomize doesn't append any hash to the ConfigMap name. The ConfigMap declared from a ConfigMapGenerator is treated differently. A hash is appended to the name and any change in the ConfigMap will trigger a rolling update.
|
||||||
|
|||||||
Reference in New Issue
Block a user