Skip to content

Instantly share code, notes, and snippets.

@100mik
Created July 15, 2024 10:00
Show Gist options
  • Save 100mik/75a942ff81679a35992ec351254df05f to your computer and use it in GitHub Desktop.
Save 100mik/75a942ff81679a35992ec351254df05f to your computer and use it in GitHub Desktop.
#@ load("@ytt:data", "data")
#@ if/end data.values.configFileContents.defaultHttpVersions:
default-http-versions: #@ data.values.configFileContents.defaultHttpVersions
#@ def default_conns():
- foo: 2
bar: 1
#@ end
#@data/values-schema
---
configFileContents:
#@schema/default default_conns()
defaultHttpVersions:
- foo: 1
bar: 2
#@data/values
---
configFileContents:
defaultHttpVersions:
- foo: 4
- bar: 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment