Some checks failed
Gitea Actions Demo Training / Explore-Gitea-Actions (push) Failing after 14s
21 lines
528 B
YAML
21 lines
528 B
YAML
#@ load("@ytt:data", "data")
|
|
#@ load("@ytt:library", "library")
|
|
#@ load("@ytt:template", "template")
|
|
#@
|
|
#@ component = library.get("component")
|
|
#@
|
|
#@ defaults = {}
|
|
#@ for name in data.values:
|
|
#@ if name.startswith("_"):
|
|
#@ defaults.update(data.values[name])
|
|
#@ end
|
|
#@ end
|
|
#@ for name in data.values:
|
|
#@ if not name.startswith("_"):
|
|
#@ values = dict(name=name)
|
|
#@ values.update(defaults)
|
|
#@ values.update(data.values[name])
|
|
--- #@ template.replace(component.with_data_values(values).eval())
|
|
#@ end
|
|
#@ end
|