Skip to content

Commit 7e16543

Browse files
authored
Update configure-pod-configmap.md
1 parent b0b5f5f commit 7e16543

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

content/en/docs/tasks/configure-pod-container/configure-pod-configmap.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -678,8 +678,8 @@ data:
678678
### Optional ConfigMaps
679679

680680
In a Pod, or pod template, you can mark a reference to a ConfigMap as _optional_.
681-
If the ConfigMap is non-existent, the mounted volume will be empty.
682-
If the ConfigMap exists, but the referenced key is non-existent the path will be absent beneath the mount point.
681+
If the ConfigMap is non-existent, the configuration for which it provides data in the Pod (e.g. environment variable, mounted volume) will be empty.
682+
If the ConfigMap exists, but the referenced key is non-existent the data is also empty.
683683

684684
#### Optional ConfigMap in environment variables
685685

@@ -739,10 +739,7 @@ spec:
739739
restartPolicy: Never
740740
```
741741

742-
If you run this pod, and there is no ConfigMap named `no-config`, the output is:
743-
744-
```shell
745-
```
742+
If you run this pod, and there is no ConfigMap named `no-config`, the mounted volume will be empty.
746743

747744
### Mounted ConfigMaps are updated automatically
748745

0 commit comments

Comments
 (0)