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

58 lines
1.7 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 },
{ action = 'create-config },
{ file = "pvc", action = 'apply, skip_if_exists = true },
{ action = 'create-cf-secret },
{ file = "certificate", action = 'apply, skip_if_exists = true },
{ file = "referencegrant", action = 'apply },
{ action = 'patch-gateway-https },
{ file = "deployment", action = 'apply },
{ file = "service", action = 'apply },
{ file = "httproute", action = 'apply },
{
action = 'wait-ready,
post = [
{ action = 'protect-volume },
],
},
],
update = [
{ action = 'create-config },
{ file = "certificate", action = 'apply, skip_if_exists = true },
{ file = "referencegrant", action = 'apply },
{ action = 'patch-gateway-https },
{ file = "httproute", action = 'apply },
{
file = "deployment",
action = 'rollout-restart,
delay = 3,
post = [
{ action = 'wait-ready },
],
},
],
delete = [
{ action = 'remove-gateway-https },
{ file = "referencegrant", action = 'delete },
{ file = "httproute", action = 'delete },
{ file = "deployment", action = 'delete },
{ file = "service", action = 'delete },
{ action = 'delete-config },
],
restart = [
{
file = "deployment",
action = 'rollout-restart,
post = [{ action = 'wait-ready }],
},
],
},
}