Last active
April 20, 2020 19:26
-
-
Save pivotaljohn/8c7f48e183158ce12107f576eeab937c to your computer and use it in GitHub Desktop.
ytt — appending array items to a data value from multiple overlays
This file contains hidden or 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 | |
--- | |
ca_certs: [] |
This file contains hidden or 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") | |
--- | |
ca_certs: #@ data.values.ca_certs |
This file contains hidden or 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 | |
#@ load("@ytt:overlay", "overlay") | |
--- | |
ca_certs: | |
#@overlay/append | |
- value1 | |
#@overlay/append | |
- value2 |
This file contains hidden or 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 | |
#@ 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