let mp = import "schemas/lib/manifest_plan.ncl" in { manifest_plan | mp.ManifestPlan = { init = [ { file = "namespace", action = 'apply, skip_if_exists = true }, { file = "certificate", action = 'apply, skip_if_exists = true }, { file = "referencegrant", action = 'apply }, { action = 'patch-gateway-https }, { action = 'create-credentials }, { action = 'init-db }, { file = "pvc", action = 'apply, skip_if_exists = true }, { file = "valkey-pvc", action = 'apply, skip_if_exists = true }, { file = "valkey-deployment", action = 'apply }, { file = "valkey-service", action = 'apply }, { action = 'wait-valkey }, { file = "cube-config-configmap", action = 'apply }, { file = "cube-schema-configmap", action = 'apply }, { file = "cube-deployment", action = 'apply }, { file = "cube-service", action = 'apply }, { action = 'wait-cube }, { file = "hub-deployment", action = 'apply }, { file = "hub-service", action = 'apply }, { action = 'wait-hub }, { file = "deployment", action = 'apply }, { file = "service", action = 'apply }, { file = "httproute", action = 'apply }, { action = 'wait-ready, post = [ { action = 'protect-volume, params = { pvc = "formbricks-data" } }, { action = 'protect-volume, params = { pvc = "formbricks-valkey-data" } }, ], }, ], update = [ { file = "certificate", action = 'apply, skip_if_exists = true }, { file = "referencegrant", action = 'apply }, { action = 'patch-gateway-https }, { file = "cube-config-configmap", action = 'apply }, { file = "cube-schema-configmap", action = 'apply }, { file = "cube-deployment", action = 'apply }, { file = "hub-deployment", action = 'apply }, { file = "httproute", action = 'apply }, { file = "deployment", action = 'rollout-restart, delay = 3, post = [ { action = 'wait-ready }, ], }, ], delete = [ { file = "httproute", action = 'delete }, { file = "deployment", action = 'delete }, { file = "service", action = 'delete }, { file = "hub-deployment", action = 'delete }, { file = "hub-service", action = 'delete }, { file = "cube-deployment", action = 'delete }, { file = "cube-service", action = 'delete }, { file = "valkey-service", action = 'delete }, { file = "valkey-deployment", action = 'delete }, ], restart = [ { file = "deployment", action = 'rollout-restart, post = [ { action = 'wait-ready }, ], }, ], }, }