78 lines
2.8 KiB
Text
78 lines
2.8 KiB
Text
|
|
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 },
|
||
|
|
{ action = 'init-db },
|
||
|
|
{ file = "pictrs-pvc", action = 'apply, skip_if_exists = true },
|
||
|
|
{ file = "nginx-configmap", action = 'apply },
|
||
|
|
{ file = "lemmy-configmap", action = 'apply },
|
||
|
|
{ action = 'create-configmaps },
|
||
|
|
{ file = "pictrs-deployment", action = 'apply },
|
||
|
|
{ file = "pictrs-service", action = 'apply },
|
||
|
|
{ action = 'wait-pictrs },
|
||
|
|
{ file = "lemmy-deployment", action = 'apply },
|
||
|
|
{ file = "lemmy-service", action = 'apply },
|
||
|
|
{ action = 'wait-lemmy },
|
||
|
|
{ file = "lemmy-ui-deployment", action = 'apply },
|
||
|
|
{ file = "lemmy-ui-service", action = 'apply },
|
||
|
|
{ file = "proxy-deployment", action = 'apply },
|
||
|
|
{ file = "proxy-service", action = 'apply },
|
||
|
|
{ file = "httproute", action = 'apply },
|
||
|
|
{
|
||
|
|
action = 'wait-ready,
|
||
|
|
post = [
|
||
|
|
{ action = 'protect-volume, params = { pvc = "lemmy-pictrs-data" } },
|
||
|
|
],
|
||
|
|
},
|
||
|
|
],
|
||
|
|
|
||
|
|
update = [
|
||
|
|
{ file = "certificate", action = 'apply, skip_if_exists = true },
|
||
|
|
{ file = "referencegrant", action = 'apply },
|
||
|
|
{ action = 'patch-gateway-https },
|
||
|
|
{ file = "nginx-configmap", action = 'apply },
|
||
|
|
{ action = 'create-configmaps },
|
||
|
|
{ file = "httproute", action = 'apply },
|
||
|
|
{ file = "pictrs-deployment", action = 'apply },
|
||
|
|
{ file = "lemmy-ui-deployment", action = 'apply },
|
||
|
|
{ file = "proxy-deployment", action = 'apply },
|
||
|
|
{
|
||
|
|
file = "lemmy-deployment",
|
||
|
|
action = 'rollout-restart,
|
||
|
|
delay = 3,
|
||
|
|
post = [
|
||
|
|
{ action = 'wait-ready },
|
||
|
|
],
|
||
|
|
},
|
||
|
|
],
|
||
|
|
|
||
|
|
delete = [
|
||
|
|
{ file = "httproute", action = 'delete },
|
||
|
|
{ file = "proxy-deployment", action = 'delete },
|
||
|
|
{ file = "proxy-service", action = 'delete },
|
||
|
|
{ file = "lemmy-ui-deployment", action = 'delete },
|
||
|
|
{ file = "lemmy-ui-service", action = 'delete },
|
||
|
|
{ file = "lemmy-deployment", action = 'delete },
|
||
|
|
{ file = "lemmy-service", action = 'delete },
|
||
|
|
{ file = "pictrs-deployment", action = 'delete },
|
||
|
|
{ file = "pictrs-service", action = 'delete },
|
||
|
|
],
|
||
|
|
|
||
|
|
restart = [
|
||
|
|
{
|
||
|
|
file = "proxy-deployment",
|
||
|
|
action = 'rollout-restart,
|
||
|
|
post = [
|
||
|
|
{ action = 'wait-ready },
|
||
|
|
],
|
||
|
|
},
|
||
|
|
],
|
||
|
|
},
|
||
|
|
}
|