Last active
December 1, 2021 13:31
-
-
Save dbarranco/fc7a47af3649462b2026a828b470f513 to your computer and use it in GitHub Desktop.
ytt double-quoted strings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@ load("@ytt:data", "data") | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: one | |
labels: | |
app: web | |
spec: | |
replicas: 2 | |
selector: | |
matchLabels: | |
app: web | |
template: | |
metadata: | |
labels: | |
app: web | |
spec: | |
containers: | |
- name: front-end | |
image: nginx | |
ports: | |
- containerPort: 80 | |
resources: | |
requests: | |
cpu: 500m | |
memory: 500Mi | |
env: | |
- name: FRONTEND_TAGS | |
value: #@ data.values.frontendTags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@data/values | |
--- | |
frontendTags: "hey,hello" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment