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

58 lines
1.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 },
{ action = 'create-credentials' },
{ file = "configmap-app-ini", action = 'apply },
{ file = "pvc", action = 'apply, skip_if_exists = true },
{ file = "service", action = 'apply },
{ file = "service-ssh", action = 'apply },
{ file = "statefulset", action = 'apply },
{ file = "httproute", action = 'apply },
{ file = "httproute-redirect", action = 'apply },
{
action = 'wait-ready,
post = [
{ action = 'protect-volume },
],
},
],
update = [
{ action = 'create-credentials' },
{ file = "configmap-app-ini", action = 'apply },
{ file = "service", action = 'apply },
{ file = "service-ssh", action = 'apply },
{ file = "httproute", action = 'apply },
{ file = "httproute-redirect", action = 'apply },
{ file = "statefulset", action = 'apply },
{
file = "statefulset",
action = 'rollout-restart,
delay = 3,
post = [
{ action = 'wait-ready },
],
},
],
delete = [
{ file = "httproute", action = 'delete },
{ file = "httproute-redirect", action = 'delete },
{ file = "statefulset", action = 'delete },
{ file = "service", action = 'delete },
{ file = "service-ssh", action = 'delete },
{ file = "configmap-app-ini", action = 'delete },
],
restart = [
{
file = "statefulset",
action = 'rollout-restart,
post = [{ action = 'wait-ready }],
},
],
},
}