Skip to content

Instantly share code, notes, and snippets.

@dbarranco
Last active December 1, 2021 13:31
Show Gist options
  • Save dbarranco/fc7a47af3649462b2026a828b470f513 to your computer and use it in GitHub Desktop.
Save dbarranco/fc7a47af3649462b2026a828b470f513 to your computer and use it in GitHub Desktop.
ytt double-quoted strings
#@ 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
#@data/values
---
frontendTags: "hey,hello"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment