provisioning-catalog/components/vector/cluster/manifest_plan.ncl

40 lines
1.2 KiB
Text
Raw Normal View History

let mp = import "schemas/lib/manifest_plan.ncl" in
{
manifest_plan | mp.ManifestPlan = {
init = [
{ file = "namespace", action = 'apply, skip_if_exists = true },
{ file = "serviceaccount", action = 'apply },
{ file = "clusterrole", action = 'apply },
{ file = "clusterrolebinding", action = 'apply },
{ file = "configmap", action = 'apply },
{ file = "daemonset", action = 'apply },
{ file = "service", action = 'apply },
{ action = 'wait-ready },
],
update = [
{ file = "configmap", action = 'apply },
{ file = "daemonset", action = 'apply },
{
file = "daemonset",
action = 'rollout-restart,
post = [{ action = 'wait-ready }],
},
],
delete = [
{ file = "daemonset", action = 'delete },
{ file = "service", action = 'delete },
{ file = "clusterrolebinding", action = 'delete },
{ file = "clusterrole", action = 'delete },
{ file = "serviceaccount", action = 'delete },
],
restart = [
{
file = "daemonset",
action = 'rollout-restart,
post = [{ action = 'wait-ready }],
},
],
},
}