Skip to content

Instantly share code, notes, and snippets.

@pivotaljohn
Last active April 20, 2020 19:26
Show Gist options
  • Save pivotaljohn/8c7f48e183158ce12107f576eeab937c to your computer and use it in GitHub Desktop.
Save pivotaljohn/8c7f48e183158ce12107f576eeab937c to your computer and use it in GitHub Desktop.
ytt — appending array items to a data value from multiple overlays
#@data/values
---
ca_certs: []
#@ load("@ytt:data", "data")
---
ca_certs: #@ data.values.ca_certs
#@data/values
#@ load("@ytt:overlay", "overlay")
---
ca_certs:
#@overlay/append
- value1
#@overlay/append
- value2
#@data/values
#@ load("@ytt:overlay", "overlay")
---
ca_certs:
#@overlay/append
- |
multi
line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment