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

64 lines
2.1 KiB
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 },
{ file = "certificate", action = 'apply, skip_if_exists = true },
{ file = "referencegrant", action = 'apply },
{ action = 'patch-gateway-https },
{ action = 'create-credentials },
{ file = "postgis-pvc", action = 'apply, skip_if_exists = true },
{ file = "postgis-deployment", action = 'apply },
{ file = "postgis-service", action = 'apply },
{ action = 'wait-postgis },
{ action = 'init-db },
{ file = "pvc", action = 'apply, skip_if_exists = true },
{ file = "deployment", action = 'apply },
{ file = "service", action = 'apply },
{ file = "httproute", action = 'apply },
{
action = 'wait-ready,
post = [
{ action = 'protect-volume, params = { pvc = "mobilizon-uploads" } },
{ action = 'protect-volume, params = { pvc = "mobilizon-postgis-data" } },
],
},
],
update = [
{ file = "certificate", action = 'apply, skip_if_exists = true },
{ file = "referencegrant", action = 'apply },
{ action = 'patch-gateway-https },
{ action = 'create-credentials },
{ file = "httproute", action = 'apply },
{ file = "deployment", action = 'delete, ignore_not_found = true },
{
file = "deployment",
action = 'apply,
post = [
{ action = 'wait-ready },
],
},
],
delete = [
{ file = "httproute", action = 'delete },
{ file = "deployment", action = 'delete },
{ file = "service", action = 'delete },
{ file = "postgis-deployment", action = 'delete },
{ file = "postgis-service", action = 'delete },
],
restart = [
{
file = "deployment",
action = 'rollout-restart,
post = [
{ action = 'wait-ready },
],
},
],
},
}