Skip to content

Commit 1253c3b

Browse files
author
Weiping Cai
committed
fix UNCHANGE_REFERENCE to UNCHANGED_REFERENCE,and use you to replace we
Signed-off-by: Weiping Cai <[email protected]>
1 parent 5513c60 commit 1253c3b

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

content/en/docs/tasks/inject-data-application/define-interdependent-environment-variables.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,12 @@ This page shows how to define dependent environment variables for a container
1010
in a Kubernetes Pod.
1111

1212

13-
14-
1513
## {{% heading "prerequisites" %}}
1614

1715

1816
{{< include "task-tutorial-prereqs.md" >}}
1917

2018

21-
22-
2319
<!-- steps -->
2420

2521
## Define an environment dependent variable for a container
@@ -51,25 +47,25 @@ Pod:
5147
dependent-envars-demo 1/1 Running 0 9s
5248
```
5349

54-
3. Get log to the container running in your Pod:
50+
3. Check the logs for the container running in your Pod:
5551

5652
```shell
5753
kubectl logs pod/dependent-envars-demo
5854
```
5955
```
6056
SERVICE_ADDRESS
6157
https://172.17.0.1:80
62-
UNCHANGE_REFERENCE
58+
UNCHANGED_REFERENCE
6359
$(PROTOCOL)://172.17.0.1:80
6460
ESCAPED_REFERENCE
6561
$(PROTOCOL)://172.17.0.1:80
6662
```
6763

68-
As shown above, we have defined the correct dependency reference of `SERVICE_ADDRESS`, bad dependency reference of `UNCHANGE_REFERENCE` and skip dependent references of `ESCAPED_REFERENCE`.
64+
As shown above, you have defined the correct dependency reference of `SERVICE_ADDRESS`, bad dependency reference of `UNCHANGED_REFERENCE` and skip dependent references of `ESCAPED_REFERENCE`.
6965

7066
When the environment variable is defined, you can use it directly. You can use it after the definition is completed, such as `SERVICE_ADDRESS`.
7167

72-
When the environment variable is undefined or only includes some variables, the undefined environment variable is treated as a normal string, such as `UNCHANGE_REFERENCE`. A bad reference does not interfere with the operation of the container.
68+
When the environment variable is undefined or only includes some variables, the undefined environment variable is treated as a normal string, such as `UNCHANGED_REFERENCE`. A bad reference does not interfere with the operation of the container.
7369

7470
The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME).Escaped references will never be expanded, regardless of whether the variable exists or not.
7571

0 commit comments

Comments
 (0)