Skip to content

Commit d5ac60e

Browse files
committed
docs: improve documentation for expressions with inlineManifests
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
1 parent 022b94f commit d5ac60e

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

docs/pages/configuration/deployments/kubectl/inline_manifests.mdx

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,31 @@ spec:
5757
EOF
5858
```
5959

60+
You can also use variables:
61+
62+
```yaml
63+
vars:
64+
CONTAINER_NAME: $(cat my-example.txt)
65+
66+
deployments:
67+
backend:
68+
kubectl:
69+
inlineManifest: |-
70+
apiVersion: v1
71+
kind: Pod
72+
metadata:
73+
name: busybox-sleep
74+
spec:
75+
containers:
76+
- name: ${CONTAINER_NAME}
77+
# name: $(cat my-example.txt) won't work!
78+
image: busybox:1.28
79+
args:
80+
- sleep
81+
- "1000000"
82+
createArgs:
83+
- "--recursive"
84+
```
6085
6186
## Update Image Tags
6287

0 commit comments

Comments
 (0)