postgresql: added postgresConfig value to specify runtime config parameters (#3780)

This commit is contained in:
jonathan.striebel
2018-02-28 13:09:45 -08:00
committed by k8s-ci-robot
parent 3aaf81b558
commit ac3aa9fe6f
4 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: postgresql
version: 0.8.14
version: 0.9.0
description: Object-relational database management system (ORDBMS) with an emphasis on extensibility and on standards-compliance.
keywords:
- postgresql
+1
View File
@@ -53,6 +53,7 @@ The following tables lists the configurable parameters of the PostgreSQL chart a
| `postgresPassword` | Password for the new user. | random 10 characters |
| `postgresDatabase` | Name for new database to create. | `postgres` |
| `postgresInitdbArgs` | Initdb Arguments | `nil` |
| `postgresConfig` | Runtime Config Parameters | `nil` |
| `persistence.enabled` | Use a PVC to persist data | `true` |
| `persistence.existingClaim`| Provide an existing PersistentVolumeClaim | `nil` |
| `persistence.storageClass` | Storage class of backing PVC | `nil` (uses alpha storage class annotation) |
@@ -29,6 +29,11 @@ spec:
- name: {{ template "postgresql.fullname" . }}
image: "{{ .Values.image }}:{{ .Values.imageTag }}"
imagePullPolicy: {{ default "" .Values.imagePullPolicy | quote }}
args:
{{- range $key, $value := default dict .Values.postgresConfig }}
- -c
- '{{ $key | snakecase }}={{ $value }}'
{{- end }}
env:
- name: POSTGRES_USER
value: {{ default "postgres" .Values.postgresUser | quote }}
+5
View File
@@ -31,6 +31,11 @@ imageTag: "9.6.2"
## ref: https://www.postgresql.org/docs/current/static/app-initdb.html
# postgresInitdbArgs:
## Specify runtime config parameters as a dict, using camelCase, e.g.
## {"sharedBuffers": "500MB"}
## ref: https://www.postgresql.org/docs/current/static/runtime-config.html
# postgresConfig:
## Persist data to a persitent volume
persistence:
enabled: true