45 lines
1.6 KiB
Text
45 lines
1.6 KiB
Text
let mp = import "schemas/lib/manifest_plan.ncl" in
|
|
|
|
{
|
|
manifest_plan | mp.ManifestPlan = {
|
|
init = [
|
|
{ file = "storageclass", action = 'apply, skip_if_exists = true },
|
|
{ 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 = "alert-rules", action = 'apply },
|
|
{ file = "pvc", action = 'apply, skip_if_exists = true },
|
|
{ file = "deployment", action = 'apply },
|
|
{ file = "service", action = 'apply },
|
|
{ file = "lb-private", action = 'apply },
|
|
{ action = 'wait-ready },
|
|
],
|
|
update = [
|
|
{ file = "configmap", action = 'apply },
|
|
{ file = "alert-rules", action = 'apply },
|
|
{ file = "lb-private", action = 'apply },
|
|
{ file = "deployment", action = 'apply },
|
|
{
|
|
file = "deployment",
|
|
action = 'rollout-restart,
|
|
post = [{ action = 'wait-ready }],
|
|
},
|
|
],
|
|
delete = [
|
|
{ file = "lb-private", action = 'delete },
|
|
{ file = "deployment", action = 'delete },
|
|
{ file = "service", action = 'delete },
|
|
{ file = "clusterrolebinding", action = 'delete },
|
|
{ file = "clusterrole", action = 'delete },
|
|
],
|
|
restart = [
|
|
{
|
|
file = "deployment",
|
|
action = 'rollout-restart,
|
|
post = [{ action = 'wait-ready }],
|
|
},
|
|
],
|
|
},
|
|
}
|