prole/supabase/helm/knoe-supabase/templates/validate-db.yaml
chrisfu c023c7f590 stabilize unattended GKE Supabase/CNPG deployment
- align app/db cluster defaults for knoe-dev-0 + knoe-dev-cnpg-0 on e2-standard-2\n- harden Supabase deploy flow for cross-cluster DB ILB, GKE storage class, and node selector fallback\n- migrate Helm chart path to knoe-supabase and make external DB host rendering IP-safe\n- disable Kerberos in prod unattended config to prevent Supabase GSS auth failures\n- add Supabase port-forward mappings and DB backup context handling improvements\n\nBuild status: k8s stable

Co-authored-by: Junie <junie@jetbrains.com>
2026-04-10 15:53:58 -07:00

8 lines
518 B
YAML

{{- if and (not .Values.deployment.db.enabled) (not .Values.externalDatabase.enabled) -}}
{{- fail "Invalid database configuration: set deployment.db.enabled=true (chart-managed Postgres) or externalDatabase.enabled=true (external Postgres)" -}}
{{- end -}}
{{- if and (not .Values.deployment.db.enabled) .Values.externalDatabase.enabled (empty .Values.externalDatabase.host) -}}
{{- fail "Invalid external database configuration: externalDatabase.host must be set when externalDatabase.enabled=true" -}}
{{- end -}}