Add init container sogo

This commit is contained in:
Ruben Hensen
2026-01-26 17:47:54 +01:00
parent 254bb78ccd
commit ac82dc66e8
2 changed files with 30 additions and 9 deletions
+2 -2
View File
@@ -49,12 +49,12 @@ app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
{{/*
PostgreSQL connection URL
PostgreSQL connection URL base (without table name)
*/}}
{{- define "sogo.postgresqlURL" -}}
{{- $user := .Values.postgresql.username -}}
{{- $host := printf "%s-postgres-rw.%s.svc.cluster.local" (include "sogo.fullname" .) .Release.Namespace -}}
{{- $port := "5432" -}}
{{- $db := .Values.postgresql.database -}}
{{- printf "postgresql://%s:${POSTGRES_PASSWORD}@%s:%s/%s?sslmode=require" $user $host $port $db -}}
{{- printf "postgresql://%s:${POSTGRES_PASSWORD}@%s:%s/%s" $user $host $port $db -}}
{{- end }}