-
-
Save cppforlife/1fb11fc96e666d725e848b0eed3eaf5d to your computer and use it in GitHub Desktop.
ytt data/values example
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 | |
--- | |
pop: | |
name: iad | |
nodes: | |
foo: | |
autostart: true | |
pop: "" | |
bar: | |
autostart: true | |
pop: |
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 | |
--- | |
nodes: | |
foo: | |
pop: pop-override | |
bar: | |
autostart: false | |
pop: iad |
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
#!/bin/bash | |
./ytt -f iad_default.yaml -f overlay.yaml -f sample.tmpl.yaml |
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") | |
nodes: | |
foo: | |
pop: #@ data.values.nodes.foo.pop or data.values.pop.name | |
bar: #@ data.values.nodes.bar.pop or data.values.pop.name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment