Skip to content

Instantly share code, notes, and snippets.

@hoegaarden
Last active September 26, 2022 08:30
Show Gist options
  • Save hoegaarden/1fcb5d5d7c2afd7645342943992de52b to your computer and use it in GitHub Desktop.
Save hoegaarden/1fcb5d5d7c2afd7645342943992de52b to your computer and use it in GitHub Desktop.
ytt-defaults
#@data/values
---
inline:
- a: not_a
b: not_b
annotation:
- a: not_a
b: not_b
#@data/values-schema
---
inline:
- a: "a"
b: "b"
inline_no_input_values:
- a: "a"
b: "b"
#@schema/default [{"a":"a", "b":"b"}]
annotation:
- a: ""
b: ""
#@schema/default [{"a":"a", "b":"b"}]
annotation_no_input_values:
- a: ""
b: ""
#@ load("@ytt:data", "data")
---
"just the values-schema, no data values provided":
inline: #@ data.values.inline_no_input_values
annotation: #@ data.values.annotation_no_input_values
"data-values provided":
inline: #@ data.values.inline
annotation: #@ data.values.annotation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment