Fix indent and use valid keys for configMapKeyRef (#4428)
Fix restartPolicy indent. Use valid keys from the ConfigMap in the step previous to the last special-config creation. Key special.type was not created anywhere in previous steps anywars.
This commit is contained in:
@@ -138,7 +138,7 @@ Note: This functionality is available to users running Kubernetes v1.6 and later
|
|||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: special-config
|
name: special-config
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Save the changes to the Pod specification. Now, the Pod's output includes `SPECIAL_LEVEL=very` and `SPECIAL_TYPE=charm`.
|
1. Save the changes to the Pod specification. Now, the Pod's output includes `SPECIAL_LEVEL=very` and `SPECIAL_TYPE=charm`.
|
||||||
@@ -167,12 +167,12 @@ spec:
|
|||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: special-config
|
name: special-config
|
||||||
key: special.how
|
key: special_level
|
||||||
- name: SPECIAL_TYPE_KEY
|
- name: SPECIAL_TYPE_KEY
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: special-config
|
name: special-config
|
||||||
key: special.type
|
key: special_type
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user