baseline/_templates/argo_helm_app.template

31 lines
466 B
Text
Raw Normal View History

# vim:ft=jsonnet:
local base = import "argo_base.template";
base + {
repo:: error "repo must be defined",
chart:: $.name,
version:: error "version must be defined",
skipCrds:: false,
values:: "",
spec+: {
source+: {
repoURL: $.repo,
chart: $.chart,
targetRevision: $.version,
}
+ (
if std.length($.values) > 0 then
{ helm+: { values: $.values } } else {}
)
+ (
if $.skipCrds then
{ helm+: { skipCrds: true } } else {}
)
}
}