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

38 lines
1.1 KiB
Text
Raw Permalink 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 = "deployment", action = 'apply },
{ file = "service", action = 'apply },
{ action = 'wait-ready },
],
update = [
{ file = "deployment", action = 'apply },
{
file = "deployment",
action = 'rollout-restart,
post = [{ action = 'wait-ready }],
},
],
delete = [
{ file = "deployment", action = 'delete },
{ file = "service", action = 'delete },
{ file = "clusterrolebinding", action = 'delete },
{ file = "clusterrole", action = 'delete },
{ file = "serviceaccount", action = 'delete },
],
restart = [
{
file = "deployment",
action = 'rollout-restart,
post = [{ action = 'wait-ready }],
},
],
},
}