From 19ab41d4b8556fd0539f5cc944cccfd85f9f9801 Mon Sep 17 00:00:00 2001 From: glongzh Date: Thu, 23 Dec 2021 10:23:23 +0800 Subject: [PATCH 1/2] Update configmap docs with subpath limitation This note should be added to avoid confusion just as [Secrets](/docs/concepts//configuration/secret#mounted-secrets-are-updated-automatically) --- content/en/docs/concepts/configuration/configmap.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/en/docs/concepts/configuration/configmap.md b/content/en/docs/concepts/configuration/configmap.md index 47ecaedba6..a2ef1a5a48 100644 --- a/content/en/docs/concepts/configuration/configmap.md +++ b/content/en/docs/concepts/configuration/configmap.md @@ -239,6 +239,10 @@ propagation delay, where the cache propagation delay depends on the chosen cache ConfigMaps consumed as environment variables are not updated automatically and require a pod restart. +{{< note >}} +A container using a ConfigMap as a [subPath](/docs/concepts/storage/volumes#using-subpath) volume will not receive ConfigMap updates. +{{< /note >}} + ## Immutable ConfigMaps {#configmap-immutable} {{< feature-state for_k8s_version="v1.21" state="stable" >}} From b56ba23397308232372bc3c0d16f0cb92414f233 Mon Sep 17 00:00:00 2001 From: glongzh Date: Thu, 23 Dec 2021 16:05:25 +0800 Subject: [PATCH 2/2] Update content/en/docs/concepts/configuration/configmap.md Co-authored-by: divya-mohan0209 --- content/en/docs/concepts/configuration/configmap.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/docs/concepts/configuration/configmap.md b/content/en/docs/concepts/configuration/configmap.md index a2ef1a5a48..439d6a049d 100644 --- a/content/en/docs/concepts/configuration/configmap.md +++ b/content/en/docs/concepts/configuration/configmap.md @@ -240,7 +240,7 @@ propagation delay, where the cache propagation delay depends on the chosen cache ConfigMaps consumed as environment variables are not updated automatically and require a pod restart. {{< note >}} -A container using a ConfigMap as a [subPath](/docs/concepts/storage/volumes#using-subpath) volume will not receive ConfigMap updates. +A container using a ConfigMap as a [subPath](/docs/concepts/storage/volumes#using-subpath) volume mount will not receive ConfigMap updates. {{< /note >}} ## Immutable ConfigMaps {#configmap-immutable}