Add missing config params supported by Prisma docker image (#21807)

Prisma server docker image supports 3 additional parameters
which are not possible to set through Helm chart:
* database name
* SSL enabled flag
* max open DB connections

Signed-off-by: Peter Belko <peter.belko@gmail.com>
This commit is contained in:
Peter Belko
2020-04-14 15:12:03 -07:00
committed by GitHub
parent e266a69f6f
commit f3c377b91c
5 changed files with 25 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: prisma
version: 1.2.1
version: 1.2.2
appVersion: 1.29.1
kubeVersion: "^1.8.0-0"
description: Prisma turns your database into a realtime GraphQL API
+3
View File
@@ -50,9 +50,12 @@ Parameter | Description
`database.connector` | Database connector | `postgres`
`database.host` | Host for the database endpoint | `""`
`database.port` | Port for the database endpoint | `""`
`database.name` | Database name for Prisma objects | `prisma`
`database.user` | Database user | `prisma`
`database.password` | Database password | `""`
`database.migrations` | Enable database migrations | `true`
`database.ssl` | Enable SSL for DB connections | `false`
`database.connectionLimit` | The maximum number of database connections | `2`
`auth.enabled` | Enable Prisma Management API authentication | `false`
`auth.secret` | Secret to use for authentication | `nil`
`service.type` | Type of Service | `ClusterIP`
+3
View File
@@ -21,3 +21,6 @@ data:
user: $PRISMA_DB_USER
password: $PRISMA_DB_PASSWORD
migrations: $PRISMA_DB_MIGRATIONS
database: $PRISMA_DB_NAME
ssl: $PRISMA_DB_SSL
connectionLimit: $PRISMA_DB_CONNECTIONLIMIT
+6
View File
@@ -63,6 +63,12 @@ spec:
key: {{ template "prisma.databaseSecret.key" . }}
- name: PRISMA_DB_MIGRATIONS
value: {{ .Values.database.migrations | quote }}
- name: PRISMA_DB_NAME
value: {{ .Values.database.name | quote }}
- name: PRISMA_DB_SSL
value: {{ .Values.database.ssl | quote }}
- name: PRISMA_DB_CONNECTIONLIMIT
value: {{ .Values.database.connectionLimit | quote }}
resources:
{{ toYaml .Values.resources | indent 12 }}
{{- with .Values.nodeSelector }}
+12
View File
@@ -35,6 +35,18 @@ database:
host: ""
port: ""
## Database name where model will be created
##
name: prisma
## Enable SSL
##
ssl: false
## The maximum number of database connections (must be at least 2).
##
connectionLimit: 2
## Database credentials
##
user: prisma