Added option for custom environment variables for PostgreSQL. (#7589)

This commit enables the user to specify additional environment
variables in the postgres chart.

This is especially important for custom Postgres images which might
have different environment variables for different options or for
enabling additional features.

Furthermore versions have been updated:
- Chart version has been set to 1.0.0, as this is a stable chart

Signed-off-by: Bojan Čekrlić <bojan@cekrlic.com>
This commit is contained in:
Boky
2018-10-16 07:57:04 -07:00
committed by k8s-ci-robot
parent 4fdd2a032e
commit 65403e85b0
4 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: postgresql
version: 0.19.0
version: 1.0.0
appVersion: 9.6.2
description: Object-relational database management system (ORDBMS) with an emphasis on extensibility and on standards-compliance.
keywords:
+1
View File
@@ -92,6 +92,7 @@ The following table lists the configurable parameters of the PostgreSQL chart an
| `probes.readiness.failureThreshold` | Readiness probe failure threshold | `5` |
| `podAnnotations` | Annotations for the postgresql pod | {} |
| `deploymentAnnotations` | Annotations for the postgresql deployment | {} |
| `extraEnv` | Any extra environment variables you would like to pass on to the pod | {} |
The above parameters map to the env variables defined in [postgres](http://github.com/docker-library/postgres). For more information please refer to the [postgres](http://github.com/docker-library/postgres) image documentation.
@@ -87,6 +87,9 @@ spec:
{{- end }}
- name: POD_IP
valueFrom: { fieldRef: { fieldPath: status.podIP } }
{{- if .Values.extraEnv }}
{{ toYaml .Values.extraEnv | indent 8 }}
{{- end }}
ports:
- name: postgresql
containerPort: 5432
+3
View File
@@ -159,3 +159,6 @@ podAnnotations: {}
## Deployment pods replace strategy
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
# strategy: {}
# Define custom environment variables to pass to the image here
extraEnv: {}