From 691a770df564a9bf9bfefcfbcc09f56d97b83df5 Mon Sep 17 00:00:00 2001 From: Nuwan Goonasekera <2070605+nuwang@users.noreply.github.com> Date: Tue, 11 Jun 2019 13:16:17 +0530 Subject: [PATCH] [stable/postgresql] Allow templating of extra env vars (#14664) * Allow templating of extra env vars Signed-off-by: Nuwan Goonasekera <2070605+nuwang@users.noreply.github.com> * Bump chart version to fix lint error Signed-off-by: Nuwan Goonasekera <2070605+nuwang@users.noreply.github.com> --- stable/postgresql/Chart.yaml | 2 +- stable/postgresql/README.md | 2 +- stable/postgresql/templates/statefulset.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stable/postgresql/Chart.yaml b/stable/postgresql/Chart.yaml index 30a96d801a..be62feeae4 100644 --- a/stable/postgresql/Chart.yaml +++ b/stable/postgresql/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: postgresql -version: 5.3.5 +version: 5.3.6 appVersion: 11.3.0 description: Chart for PostgreSQL, an object-relational database management system (ORDBMS) with an emphasis on extensibility and on standards-compliance. keywords: diff --git a/stable/postgresql/README.md b/stable/postgresql/README.md index 80093d71a9..c3193d9f6d 100644 --- a/stable/postgresql/README.md +++ b/stable/postgresql/README.md @@ -166,7 +166,7 @@ The following tables lists the configurable parameters of the PostgreSQL chart a | `metrics.readinessProbe.timeoutSeconds` | When the probe times out | 5 | | `metrics.readinessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | 6 | | `metrics.readinessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed | 1 | -| `extraEnv` | Any extra environment variables you would like to pass on to the pod | `{}` | +| `extraEnv` | Any extra environment variables you would like to pass on to the pod. The value is evaluated as a template. | `{}` | | `updateStrategy` | Update strategy policy | `{type: "RollingUpdate"}` | Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, diff --git a/stable/postgresql/templates/statefulset.yaml b/stable/postgresql/templates/statefulset.yaml index b176079c24..9b437ea329 100644 --- a/stable/postgresql/templates/statefulset.yaml +++ b/stable/postgresql/templates/statefulset.yaml @@ -153,7 +153,7 @@ spec: value: {{ (include "postgresql.database" .) | quote }} {{- end }} {{- if .Values.extraEnv }} -{{ toYaml .Values.extraEnv | indent 8 }} +{{ tpl (toYaml .Values.extraEnv) $ | indent 8 }} {{- end }} ports: - name: postgresql