[stable/nexcloud] Support PostgreSQL database (#15155)

Signed-off-by: Cedric Thiebault <cedric.thiebault@gmail.com>
This commit is contained in:
Cedric Thiebault
2019-07-01 13:40:37 -07:00
committed by Kubernetes Prow Robot
parent 75fe62a37f
commit 0b010d93bf
4 changed files with 22 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: nextcloud
version: 1.4.0
version: 1.5.0
appVersion: 16.0.1
description: A file sharing server that puts the control and security of your own data back into your hands.
keywords:
+1
View File
@@ -73,6 +73,7 @@ The following table lists the configurable parameters of the nextcloud chart and
| `internalDatabase.enabled` | Whether to use internal sqlite database | `true` |
| `internalDatabase.database` | Name of the existing database | `nextcloud` |
| `externalDatabase.enabled` | Whether to use external database | `false` |
| `externalDatabase.type` | External database type: `mysql`, `postgresql` | `mysql` |
| `externalDatabase.host` | Host of the external database | `nil` |
| `externalDatabase.database` | Name of the existing database | `nextcloud` |
| `externalDatabase.user` | Existing username in the external db | `nextcloud` |
@@ -51,6 +51,22 @@ spec:
name: {{ printf "%s-%s" .Release.Name "db" }}
key: db-password
{{- else }}
{{- if eq .Values.externalDatabase.type "postgresql" }}
- name: POSTGRES_HOST
value: {{ .Values.externalDatabase.host | quote }}
- name: POSTGRES_DB
value: {{ .Values.externalDatabase.database | quote }}
- name: POSTGRES_USER
valueFrom:
secretKeyRef:
name: {{ printf "%s-%s" .Release.Name "db" }}
key: db-username
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: {{ printf "%s-%s" .Release.Name "db" }}
key: db-password
{{- else }}
- name: MYSQL_HOST
value: {{ .Values.externalDatabase.host | quote }}
- name: MYSQL_DATABASE
@@ -65,6 +81,7 @@ spec:
secretKeyRef:
name: {{ printf "%s-%s" .Release.Name "db" }}
key: db-password
{{- end }}
{{- end }}
- name: NEXTCLOUD_ADMIN_USER
valueFrom:
+3
View File
@@ -86,6 +86,9 @@ internalDatabase:
externalDatabase:
enabled: false
## Supported database engines: mysql or postgresql
type: mysql
## Database host
host: