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

42 lines
1.4 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 = "datasources-configmap", action = 'apply },
{ file = "dashboards-configmap", action = 'apply },
{ file = "alerting-configmap", action = 'apply },
{ file = "pvc", action = 'apply, skip_if_exists = true },
{ file = "deployment", action = 'apply },
{ file = "service", action = 'apply },
{ file = "lb-private", action = 'apply },
{ action = 'wait-ready },
],
update = [
{ file = "datasources-configmap", action = 'apply },
{ file = "alerting-configmap", action = 'apply },
{ file = "lb-private", action = 'apply },
{ file = "deployment", action = 'apply },
{
file = "deployment",
action = 'rollout-restart,
post = [{ action = 'wait-ready }],
},
],
delete = [
{ file = "lb-private", action = 'delete },
{ file = "deployment", action = 'delete },
{ file = "service", action = 'delete },
],
restart = [
{
file = "deployment",
action = 'rollout-restart,
post = [{ action = 'wait-ready }],
},
],
},
}