mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
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:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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: {}
|
||||
|
||||
Reference in New Issue
Block a user