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

62 lines
2 KiB
Text
Raw Permalink 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 = "configmap-nginx", action = 'apply },
{ file = "configmap-mu-smtp", action = 'apply },
{ file = "configmap-fpm-pool", action = 'apply },
{ file = "cronjob-wpcron", action = 'apply },
{ file = "deployment", action = 'apply },
{ file = "service", action = 'apply },
{ file = "httproute", action = 'apply },
{ file = "httproute-redirect", action = 'apply },
{
action = 'wait-ready,
post = [
{ action = 'protect-volume },
],
},
],
update = [
{ file = "configmap-nginx", action = 'apply },
{ file = "configmap-mu-smtp", action = 'apply },
{ file = "configmap-fpm-pool", action = 'apply },
{ file = "cronjob-wpcron", action = 'apply },
{ file = "httproute", action = 'apply },
{ file = "httproute-redirect", action = 'apply },
{ file = "deployment", action = 'apply },
{
file = "deployment",
action = 'rollout-restart,
delay = 3,
post = [
{ action = 'wait-ready },
],
},
],
delete = [
{ file = "httproute", action = 'delete },
{ file = "httproute-redirect", action = 'delete },
{ file = "deployment", action = 'delete },
{ file = "service", action = 'delete },
{ file = "configmap-nginx", action = 'delete },
{ file = "configmap-mu-smtp", action = 'delete },
{ file = "cronjob-wpcron", action = 'delete },
],
restart = [
{
file = "deployment",
action = 'rollout-restart,
post = [{ action = 'wait-ready }],
},
],
},
}