mirror of
https://github.com/dredx/prole.git
synced 2026-09-24 16:34:31 +00:00
- 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>
44 lines
1.4 KiB
Smarty
44 lines
1.4 KiB
Smarty
{{/*
|
|
Expand the name of the chart.
|
|
*/}}
|
|
{{- define "supabase.kong.name" -}}
|
|
{{- default (print .Chart.Name "-kong") .Values.deployment.kong.nameOverride | trunc 63 | trimSuffix "-" }}
|
|
{{- end }}
|
|
|
|
{{/*
|
|
Create a default fully qualified app name.
|
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
|
If release name contains chart name it will be used as a full name.
|
|
*/}}
|
|
{{- define "supabase.kong.fullname" -}}
|
|
{{- if .Values.deployment.kong.fullnameOverride }}
|
|
{{- .Values.deployment.kong.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
|
{{- else }}
|
|
{{- $name := default (print .Chart.Name "-kong") .Values.deployment.kong.nameOverride }}
|
|
{{- if contains $name .Release.Name }}
|
|
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
|
{{- else }}
|
|
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|
|
|
|
{{/*
|
|
Selector labels
|
|
*/}}
|
|
{{- define "supabase.kong.selectorLabels" -}}
|
|
app.kubernetes.io/name: {{ include "supabase.kong.name" . }}
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
{{- end }}
|
|
|
|
{{/*
|
|
Create the name of the service account to use
|
|
*/}}
|
|
{{- define "supabase.kong.serviceAccountName" -}}
|
|
{{- if .Values.serviceAccount.kong.create }}
|
|
{{- default (include "supabase.kong.fullname" .) .Values.serviceAccount.kong.name }}
|
|
{{- else }}
|
|
{{- default "default" .Values.serviceAccount.kong.name }}
|
|
{{- end }}
|
|
{{- end }}
|