40 lines
1.3 KiB
Text
40 lines
1.3 KiB
Text
let mp = import "schemas/lib/manifest_plan.ncl" in
|
|
|
|
{
|
|
manifest_plan | mp.ManifestPlan = {
|
|
init = [
|
|
{ file = "serviceaccount", action = 'apply },
|
|
{ file = "clusterrole", action = 'apply },
|
|
{ file = "clusterrolebinding", action = 'apply },
|
|
{ file = "rolebinding", action = 'apply },
|
|
{ file = "deployment", action = 'apply },
|
|
{ file = "service", action = 'apply },
|
|
{ file = "apiservice", action = 'apply },
|
|
{ action = 'wait-ready },
|
|
],
|
|
update = [
|
|
{ file = "deployment", action = 'apply },
|
|
{
|
|
file = "deployment",
|
|
action = 'rollout-restart,
|
|
post = [{ action = 'wait-ready }],
|
|
},
|
|
],
|
|
delete = [
|
|
{ file = "apiservice", action = 'delete },
|
|
{ file = "deployment", action = 'delete },
|
|
{ file = "service", action = 'delete },
|
|
{ file = "clusterrolebinding", action = 'delete },
|
|
{ file = "clusterrole", action = 'delete },
|
|
{ file = "rolebinding", action = 'delete },
|
|
{ file = "serviceaccount", action = 'delete },
|
|
],
|
|
restart = [
|
|
{
|
|
file = "deployment",
|
|
action = 'rollout-restart,
|
|
post = [{ action = 'wait-ready }],
|
|
},
|
|
],
|
|
},
|
|
}
|