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

40 lines
1,011 B
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 },
{ 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 },
],
},
],
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 }],
},
],
},
}