Skip to content

Commit 7b0713b

Browse files
authored
fix(realtime): align kong routing with chart values
2 parents e70c314 + 9b7286c commit 7b0713b

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

charts/supabase/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.3.1
18+
version: 0.3.2
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/supabase/templates/kong/config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,10 @@ data:
141141
- admin
142142
- anon
143143
{{- end }}
144-
{{- if .Values.supabase.realtime.enabled }}
144+
{{- if .Values.realtime.enabled }}
145145
- name: realtime-v1-ws
146-
_comment: "Realtime: /realtime/v1/* -> ws://{{ .Values.supabase.realtime.service.name }}:{{ .Values.supabase.realtime.service.port }}/socket/*"
147-
url: http://{{ .Values.supabase.realtime.service.name }}:{{ .Values.supabase.realtime.service.port }}/socket
146+
_comment: "Realtime: /realtime/v1/* -> ws://{{ include "supabase.realtime.fullname" . }}:{{ .Values.realtime.service.port }}/socket/*"
147+
url: http://{{ include "supabase.realtime.fullname" . }}:{{ .Values.realtime.service.port }}/socket
148148
protocol: ws
149149
routes:
150150
- name: realtime-v1-ws
@@ -163,8 +163,8 @@ data:
163163
- admin
164164
- anon
165165
- name: realtime-v1-rest
166-
_comment: 'Realtime: /realtime/v1/* -> http://{{ .Values.supabase.realtime.service.name }}:{{ .Values.supabase.realtime.service.port }}/api/*'
167-
url: http://{{ .Values.supabase.realtime.service.name }}:{{ .Values.supabase.realtime.service.port }}/api
166+
_comment: 'Realtime: /realtime/v1/* -> http://{{ include "supabase.realtime.fullname" . }}:{{ .Values.realtime.service.port }}/api/*'
167+
url: http://{{ include "supabase.realtime.fullname" . }}:{{ .Values.realtime.service.port }}/api
168168
protocol: http
169169
routes:
170170
- name: realtime-v1-rest

charts/supabase/templates/realtime/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ spec:
6666
- name: DB_HOST
6767
value: {{ include "supabase.db.fullname" . }}
6868
{{- end }}
69+
- name: SELF_HOST_TENANT_NAME
70+
value: {{ include "supabase.realtime.fullname" . }}
6971
- name: DB_PASSWORD
7072
valueFrom:
7173
secretKeyRef:

0 commit comments

Comments
 (0)