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

55 lines
1.6 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 = "pvc", action = 'apply, skip_if_exists = true },
{ action = 'create-cf-secret },
{ file = "clusterissuer", action = 'apply, skip_if_exists = true },
{ file = "certificate", action = 'apply, skip_if_exists = true },
{ file = "configmap", action = 'apply },
{ action = 'create-htpasswd },
{ file = "deployment", action = 'apply },
{ file = "service", action = 'apply },
{ file = "httproute", action = 'apply },
{
action = 'wait-ready,
post = [
{ action = 'protect-volume },
],
},
],
update = [
{ file = "certificate", action = 'apply, skip_if_exists = true },
{ file = "configmap", action = 'apply },
{ action = 'create-htpasswd },
{ file = "httproute", action = 'apply },
{
file = "deployment",
action = 'rollout-restart,
delay = 3,
post = [
{ action = 'wait-ready },
],
},
],
delete = [
{ file = "httproute", action = 'delete },
{ file = "deployment", action = 'delete },
{ action = 'delete-htpasswd },
{ file = "service", action = 'delete },
{ file = "configmap", action = 'delete },
],
restart = [
{
file = "deployment",
action = 'rollout-restart,
post = [{ action = 'wait-ready }],
},
],
},
}