Skip to content

Commit 68dcb6e

Browse files
committed
[pgAdmin] Fixed possibly empty pgpass.conf Configmap
1 parent a5048a7 commit 68dcb6e

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

charts/pgadmin/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type: application
2020
# This is the chart version. This version number should be incremented each time you make changes
2121
# to the chart and its templates, including the app version.
2222
# Versions are expected to follow Semantic Versioning (https://semver.org/)
23-
version: 1.0.9
23+
version: 1.0.10
2424

2525
# This is the version number of the application being deployed. This version number should be
2626
# incremented each time you make changes to the application. Versions are not expected to
@@ -29,5 +29,5 @@ appVersion: latest
2929

3030
dependencies:
3131
- name: library-chart
32-
version: 1.5.41
32+
version: 1.7.0
3333
repository: https://inseefrlab.github.io/helm-charts-interactive-services

charts/pgadmin/templates/_helpers.tpl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@
3434
{{ printf "}" }}
3535
{{- end -}}
3636

37+
3738
{{- define "pgadmin.pgpass" -}}
38-
{{- $namespace:= .Release.Namespace -}}
39+
# hostname:port:database:username:password
40+
{{ $namespace:= .Release.Namespace -}}
3941
{{- range $index, $secret := (lookup "v1" "Secret" $namespace "").items -}}
4042
{{- if (index $secret "metadata" "annotations") -}}
4143
{{- if and (index $secret "metadata" "annotations" "onyxia/discovery") (eq "postgres" (index $secret "metadata" "annotations" "onyxia/discovery" | toString)) -}}
@@ -50,6 +52,7 @@
5052
{{- end -}}
5153
{{- end -}}
5254

55+
5356
{{- define "pgadmin.cleanemail" -}}
5457
{{ printf "%s" .Values.security.mail | replace "@" "_"}}
5558
{{- end -}}

0 commit comments

Comments
 (0)