From 19ab41d4b8556fd0539f5cc944cccfd85f9f9801 Mon Sep 17 00:00:00 2001 From: glongzh Date: Thu, 23 Dec 2021 10:23:23 +0800 Subject: [PATCH] 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" >}}