Skip to content

Commit 9b9ac3a

Browse files
authored
Merge pull request #32609 from my-git9/pod-configmap-env-var-valueFrom
[zh]Pod configmap env var value from
2 parents c0eef74 + fb58df7 commit 9b9ac3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/zh/examples/pods/pod-configmap-env-var-valueFrom.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ spec:
66
containers:
77
- name: test-container
88
image: k8s.gcr.io/busybox
9-
command: [ "/bin/sh", "-c", "echo $(SPECIAL_LEVEL_KEY) $(SPECIAL_TYPE_KEY)" ]
9+
command: [ "/bin/echo", "$(SPECIAL_LEVEL_KEY) $(SPECIAL_TYPE_KEY)" ]
1010
env:
1111
- name: SPECIAL_LEVEL_KEY
1212
valueFrom:

0 commit comments

Comments
 (0)