mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-09-18 18:42:56 +02:00
Add init container sogo
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user