use printf to replace printenv

Signed-off-by: Weiping Cai <weiping.cai@daocloud.io>
This commit is contained in:
Weiping Cai
2020-07-01 14:48:38 +08:00
parent 506a57849b
commit 4490fe014f
2 changed files with 22 additions and 24 deletions
@@ -53,12 +53,10 @@ Pod:
kubectl logs pod/dependent-envars-demo
```
```
SERVICE_ADDRESS
https://172.17.0.1:80
UNCHANGED_REFERENCE
$(PROTOCOL)://172.17.0.1:80
ESCAPED_REFERENCE
$(PROTOCOL)://172.17.0.1:80
UNCHANGED_REFERENCE=$(PROTOCOL)://172.17.0.1:80
SERVICE_ADDRESS=https://172.17.0.1:80
ESCAPED_REFERENCE=$(PROTOCOL)://172.17.0.1:80
```
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`.