Skip to content

Instantly share code, notes, and snippets.

@cppforlife
Forked from jrboelens/iad_default.yaml
Last active February 27, 2020 19:19
Show Gist options
  • Save cppforlife/1fb11fc96e666d725e848b0eed3eaf5d to your computer and use it in GitHub Desktop.
Save cppforlife/1fb11fc96e666d725e848b0eed3eaf5d to your computer and use it in GitHub Desktop.
ytt data/values example
#@data/values
---
pop:
name: iad
nodes:
foo:
autostart: true
pop: ""
bar:
autostart: true
pop:
#@data/values
---
nodes:
foo:
pop: pop-override
bar:
autostart: false
pop: iad
#!/bin/bash
./ytt -f iad_default.yaml -f overlay.yaml -f sample.tmpl.yaml
#@ 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