Skip to content

Commit 7d9b279

Browse files
SkeLLLaxatuke
andauthored
feat(helm): add connection uri param (#29)
* Bump Versions (#27) * Bump image tag * Bump app ver * feat(helm): add connection uri param * fix: versions --------- Co-authored-by: Aayushman Choudhary <Aayushmanchaudhory@gmail.com>
1 parent 310db90 commit 7d9b279

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

helm-chart/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ type: application
1414
# This is the chart version. This version number should be incremented each time you make changes
1515
# to the chart and its templates, including the app version.
1616
# Versions are expected to follow Semantic Versioning (https://semver.org/)
17-
version: 0.1.2
17+
version: 0.1.3
1818

1919
# This is the version number of the application being deployed. This version number should be
2020
# incremented each time you make changes to the application. Versions are not expected to
2121
# follow Semantic Versioning. They should reflect the version the application is using.
2222
# It is recommended to use it with quotes.
23-
appVersion: "3.14.0"
23+
appVersion: "7.0.0"

helm-chart/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ SuperTokens Core Deployment
1919
| autoscaling.minReplicas | int | `1` | minimal replica count when autoscaling |
2020
| autoscaling.targetCPUUtilizationPercentage | int | `80` | target CPU usage before autoscaling |
2121
| basePath | string | `""` | |
22+
| database.uri | string | `""` | database uri (connection string), used instead of other DB params if not empty |
2223
| database.host | string | `"postgres.postgres"` | database host |
2324
| database.name | string | `"supertokens"` | database name |
2425
| database.password | string | `"password"` | database password |

helm-chart/templates/secrets.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,15 @@ metadata:
77
{{ include "supertokens.labels" . | indent 4}}
88
type: Opaque
99
stringData:
10+
{{- if .Values.database.uri }}
11+
POSTGRESQL_CONNECTION_URI: {{ quote .Values.database.uri }}
12+
{{- else }}
1013
POSTGRESQL_DATABASE_NAME: {{ quote .Values.database.name }}
1114
POSTGRESQL_PORT: {{ quote .Values.database.port }}
1215
POSTGRESQL_HOST: {{ quote .Values.database.host }}
1316
POSTGRESQL_USER: {{ quote .Values.database.user }}
1417
POSTGRESQL_PASSWORD: {{ quote .Values.database.password }}
18+
{{- end }}
1519
{{- if .Values.apiKeys.enabled }}
1620
API_KEYS: "{{ join "," .Values.apiKeys.keys }}"
1721
{{- end }}

helm-chart/values.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ image:
22
repository: supertokens/supertokens-postgresql
33
pullPolicy: IfNotPresent
44
# -- Overrides the image tag whose default is the chart appVersion.
5-
tag: "3.14"
5+
tag: "7.0"
66

77
replicaCount: 1
88
imagePullSecrets: []
@@ -13,6 +13,8 @@ fullnameOverride: ""
1313
existingSecret: null
1414

1515
database:
16+
# -- database uri (connection string), used instaed of other params if not empty
17+
uri: ""
1618
# -- database name
1719
name: supertokens
1820
# -- database port

0 commit comments

Comments
 (0)