We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 022b94f commit d5ac60eCopy full SHA for d5ac60e
1 file changed
docs/pages/configuration/deployments/kubectl/inline_manifests.mdx
@@ -57,6 +57,31 @@ spec:
57
EOF
58
```
59
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
+```
85
86
## Update Image Tags
87
0 commit comments