diff --git a/charts/library/common/Chart.yaml b/charts/library/common/Chart.yaml index 0e6efb1f2a9..0fd8a0f6b7b 100644 --- a/charts/library/common/Chart.yaml +++ b/charts/library/common/Chart.yaml @@ -15,4 +15,4 @@ maintainers: name: common sources: null type: library -version: 8.3.7 +version: 8.3.8 diff --git a/charts/library/common/templates/lib/dependencies/_postgresInjector.tpl b/charts/library/common/templates/lib/dependencies/_postgresInjector.tpl index 2a665088f57..171d6ae62e6 100644 --- a/charts/library/common/templates/lib/dependencies/_postgresInjector.tpl +++ b/charts/library/common/templates/lib/dependencies/_postgresInjector.tpl @@ -27,11 +27,13 @@ data: urlnossl: {{ ( printf "postgresql://%v:%v@%v-postgresql:5432/%v?sslmode=disable" .Values.postgresql.postgresqlUsername $dbPass .Release.Name .Values.postgresql.postgresqlDatabase ) | b64enc | quote }} plainporthost: {{ ( printf "%v-%v" .Release.Name "postgresql" ) | b64enc | quote }} plainhost: {{ ( printf "%v-%v" .Release.Name "postgresql" ) | b64enc | quote }} + jdbc: {{ ( printf "postgresql://%v-postgresql:5432/%v" .Release.Name .Values.postgresql.postgresqlDatabase ) | b64enc | quote }} type: Opaque {{- $_ := set .Values.postgresql "postgresqlPassword" ( $dbPass | quote ) }} {{- $_ := set .Values.postgresql.url "plain" ( ( printf "%v-%v" .Release.Name "postgresql" ) | quote ) }} {{- $_ := set .Values.postgresql.url "plainport" ( ( printf "%v-%v:5432" .Release.Name "postgresql" ) | quote ) }} -{{- $_ := set .Values.postgresql.url "complete" ( ( printf "%v%v:%v@%v-%v:%v/%v" "postgresql://" .Values.postgresql.postgresqlUsername $dbPass .Release.Name "postgresql" "5432" .Values.postgresql.postgresqlDatabase ) | quote ) }} +{{- $_ := set .Values.postgresql.url "complete" ( ( printf "postgresql://%v:%v@%v-postgresql:5432/%v" .Values.postgresql.postgresqlUsername $dbPass .Release.Name .Values.postgresql.postgresqlDatabase ) | quote ) }} +{{- $_ := set .Values.postgresql.url "jdbc" ( ( printf "jdbc:postgresql://%v-postgresql:5432/%v" .Release.Name .Values.postgresql.postgresqlDatabase ) | quote ) }} {{- end }} {{- end -}}