From 7d2e7057a8ed1b0927e3f05308e8fec46608dd8c Mon Sep 17 00:00:00 2001 From: pmoscode Date: Tue, 21 Nov 2023 10:24:44 +0100 Subject: [PATCH 1/3] feat: add possibility to use template-strings inside values.yaml for "extraConfigmapMounts.[].configMap" and "extraSecretMounts.[].secret" Signed-off-by: pmoscode --- charts/pgadmin4/templates/deployment.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/pgadmin4/templates/deployment.yaml b/charts/pgadmin4/templates/deployment.yaml index e0ee1e59..a343ee38 100644 --- a/charts/pgadmin4/templates/deployment.yaml +++ b/charts/pgadmin4/templates/deployment.yaml @@ -201,13 +201,13 @@ spec: {{- range .Values.extraConfigmapMounts }} - name: {{ .name }} configMap: - name: {{ .configMap }} + name: {{ tpl (.configMap) $ }} defaultMode: {{ .defaultMode | default 256 }} {{- end }} {{- range .Values.extraSecretMounts }} - name: {{ .name }} secret: - secretName: {{ .secret }} + secretName: {{ tpl (.secret) $ }} defaultMode: {{ .defaultMode | default 256 }} {{- end }} {{- if .Values.extraVolumes }} From 123c7a5e00a883a66443eb07601e4656748da445 Mon Sep 17 00:00:00 2001 From: pmoscode Date: Tue, 21 Nov 2023 10:34:01 +0100 Subject: [PATCH 2/3] feat: bump Chart version to 1.19.0 Signed-off-by: pmoscode --- charts/pgadmin4/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/pgadmin4/Chart.yaml b/charts/pgadmin4/Chart.yaml index c5ceb5f5..0845449b 100644 --- a/charts/pgadmin4/Chart.yaml +++ b/charts/pgadmin4/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 description: pgAdmin4 is a web based administration tool for PostgreSQL database name: pgadmin4 -version: 1.18.5 +version: 1.19.0 appVersion: "7.8" keywords: - pgadmin From c55cfdb58b30d770639996b6b69f67b89bfe6819 Mon Sep 17 00:00:00 2001 From: pmoscode Date: Tue, 21 Nov 2023 10:34:27 +0100 Subject: [PATCH 3/3] feat: update README.md Signed-off-by: pmoscode --- charts/pgadmin4/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/charts/pgadmin4/README.md b/charts/pgadmin4/README.md index 28be9f1a..eb33baba 100644 --- a/charts/pgadmin4/README.md +++ b/charts/pgadmin4/README.md @@ -121,6 +121,10 @@ The command removes nearly all the Kubernetes components associated with the cha | `test.resources` | CPU/memory resource requests/limits for test | `{}` | | `test.securityContext` | Custom [security context](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/) for test Pod | `` | +> The values for "extraConfigmapMounts.[].configMap" and "extraSecretMounts.[].secret" can be either a simple string +or a template string. +Then it will be resolved for you. + Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example: ```console