File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ SuperTokens Core Deployment
19
19
| autoscaling.minReplicas | int | ` 1 ` | minimal replica count when autoscaling |
20
20
| autoscaling.targetCPUUtilizationPercentage | int | ` 80 ` | target CPU usage before autoscaling |
21
21
| basePath | string | ` "" ` | |
22
+ | database.uri | string | ` "" ` | database uri (connection string), used instead of other DB params if not empty |
22
23
| database.host | string | ` "postgres.postgres" ` | database host |
23
24
| database.name | string | ` "supertokens" ` | database name |
24
25
| database.password | string | ` "password" ` | database password |
Original file line number Diff line number Diff line change @@ -7,11 +7,15 @@ metadata:
7
7
{{ include "supertokens.labels" . | indent 4}}
8
8
type : Opaque
9
9
stringData :
10
+ {{- if .Values.database.uri }}
11
+ POSTGRESQL_CONNECTION_URI : {{ quote .Values.database.uri }}
12
+ {{- else }}
10
13
POSTGRESQL_DATABASE_NAME : {{ quote .Values.database.name }}
11
14
POSTGRESQL_PORT : {{ quote .Values.database.port }}
12
15
POSTGRESQL_HOST : {{ quote .Values.database.host }}
13
16
POSTGRESQL_USER : {{ quote .Values.database.user }}
14
17
POSTGRESQL_PASSWORD : {{ quote .Values.database.password }}
18
+ {{- end }}
15
19
{{- if .Values.apiKeys.enabled }}
16
20
API_KEYS : " {{ join " ," .Values.apiKeys.keys }}"
17
21
{{- end }}
Original file line number Diff line number Diff line change @@ -13,13 +13,15 @@ fullnameOverride: ""
13
13
existingSecret : null
14
14
15
15
database :
16
+ # -- database uri (connection string), used instaed of other params if not empty
17
+ uri : " "
16
18
# -- database name
17
19
name : supertokens
18
20
# -- database port
19
21
port : 5432
20
22
# -- database host
21
23
host : postgres.postgres
22
- # -- database user
24
+ # -- database user
23
25
user : postgres
24
26
# -- database password
25
27
password : password
You can’t perform that action at this time.
0 commit comments