44 lines
1.1 KiB
Text
44 lines
1.1 KiB
Text
let mp = import "schemas/lib/manifest_plan.ncl" in
|
|
|
|
{
|
|
manifest_plan | mp.ManifestPlan = {
|
|
init = [
|
|
{ file = "namespace", action = 'apply, skip_if_exists = true },
|
|
{ action = 'create-credentials' },
|
|
{ file = "pvc", action = 'apply, skip_if_exists = true },
|
|
{ file = "statefulset", action = 'apply },
|
|
{ file = "service", action = 'apply },
|
|
{
|
|
action = 'wait-ready,
|
|
post = [
|
|
{ action = 'post-install },
|
|
{ action = 'protect-volume, params = { pvc = "postgresql-data" } },
|
|
],
|
|
},
|
|
],
|
|
update = [
|
|
{ file = "statefulset", action = 'apply },
|
|
{
|
|
file = "statefulset",
|
|
action = 'rollout-restart,
|
|
delay = 3,
|
|
post = [
|
|
{ action = 'wait-ready },
|
|
],
|
|
},
|
|
],
|
|
delete = [
|
|
{ file = "statefulset", action = 'delete },
|
|
{ file = "service", action = 'delete },
|
|
],
|
|
restart = [
|
|
{
|
|
file = "statefulset",
|
|
action = 'rollout-restart,
|
|
post = [
|
|
{ action = 'wait-ready },
|
|
],
|
|
},
|
|
],
|
|
},
|
|
}
|