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") | |
--- | |
#! Input | |
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: secret | |
stringData: | |
longYaml: | | |
--- |
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") | |
--- | |
#! Input | |
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: secret | |
stringData: | |
longYaml: | | |
--- |
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
test gist |
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") | |
data: #@ data.values.keys | |
domains: #@ data.values.names | |
foo: #@ data.values.foo |
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") | |
#@ foo = "baz" | |
1: #@ data.values.foo | |
2: #@ getattr(data.values, foo) |
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") | |
#@ load("@ytt:template", "template") | |
#@ def dep_yaml(deployment): | |
#@ key = "deploy:{}".format(deployment.name) | |
#@ return {key: {"script": deployment.script}} | |
#@ end | |
#@ for deployment in data.values.deployments: | |
_: #@ template.replace(dep_yaml(deployment)) |
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:overlay", "overlay") | |
#@ def left(): | |
key1: value1 | |
key2: value2 | |
#@ end | |
#@ def right1(): | |
#@overlay/match missing_ok=True | |
name: type1 |
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
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: example-ingress1 | |
annotations: ~ | |
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
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: example-ingress1 | |
annotations: ~ | |
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") | |
#@ load("@ytt:struct", "struct") | |
#@ services = struct.decode(data.values.services) | |
#@ for service in services: | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: #@ service |
OlderNewer