Created
January 27, 2020 08:44
-
-
Save dnmgns/52cf78a316f68e69df4ffaca34f88f1b to your computer and use it in GitHub Desktop.
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:base64", "base64") | |
#@ load("@ytt:data", "data") | |
#@ load("@ytt:yaml", "yaml") | |
#@ def foo_config(): | |
foo: | |
bar: | |
foo: bar | |
bar: foo | |
#@ end | |
--- | |
data: | |
foo.yaml: #@ base64.encode("{}".format(yaml.decode(yaml.encode(foo_config()))["foo"])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment