Skip to content

Commit a045360

Browse files
kastakhovVaranthanaki3004washanhanzithemightychris
authored
Supabase chart (#3)
Merging some pull requests from [original](https://github.com/supabase-community/supabase-kubernetes) repository. - supabase-community/supabase-kubernetes#62 - supabase-community/supabase-kubernetes#89 - supabase-community/supabase-kubernetes#91 - supabase-community/supabase-kubernetes#94 - supabase-community/supabase-kubernetes#95 - supabase-community/supabase-kubernetes#96 - supabase-community/supabase-kubernetes#101 - supabase-community/supabase-kubernetes#106 - supabase-community/supabase-kubernetes#107 - supabase-community/supabase-kubernetes#113 --------- Co-authored-by: Varantha <sam@kiessler.co.uk> Co-authored-by: naki3004 <45875285+naki3004@users.noreply.github.com> Co-authored-by: jingyu <francismajere@gmail.com> Co-authored-by: Chris Alfano <chris@jarv.us> Co-authored-by: Simone Lazzaris <slazzaris@gmail.com> Co-authored-by: Mikey032 <26899585+Mikey032@users.noreply.github.com> Co-authored-by: Upik Saleh <upxsal@gmail.com> Co-authored-by: Scott Beardsley <scott@beards.ly>
1 parent e760f19 commit a045360

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+302
-27
lines changed

charts/supabase/CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Changelog
22

3+
## [0.1.4] - 2025-07-27
4+
5+
Merging some pull requests from [original](https://github.com/supabase-community/supabase-kubernetes) repository:
6+
7+
- <https://github.com/supabase-community/supabase-kubernetes/pull/62>
8+
- <https://github.com/supabase-community/supabase-kubernetes/pull/89>
9+
- <https://github.com/supabase-community/supabase-kubernetes/pull/91>
10+
- <https://github.com/supabase-community/supabase-kubernetes/pull/94>
11+
- <https://github.com/supabase-community/supabase-kubernetes/pull/95>
12+
- <https://github.com/supabase-community/supabase-kubernetes/pull/96>
13+
- <https://github.com/supabase-community/supabase-kubernetes/pull/101>
14+
- <https://github.com/supabase-community/supabase-kubernetes/pull/106>
15+
- <https://github.com/supabase-community/supabase-kubernetes/pull/107>
16+
- <https://github.com/supabase-community/supabase-kubernetes/pull/113>
17+
318
## [0.1.3] - 2025-07-27
419

520
- Initial release (cloned from [supabase-community/supabase-kubernetes](https://github.com/supabase-community/supabase-kubernetes))

charts/supabase/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: supabase
33
description: The open source Firebase alternative.
44
type: application
5-
version: 0.1.3
5+
version: 0.1.4
66
kubeVersion: ">=1.18.0"
77
appVersion: latest
88
sources:

charts/supabase/templates/analytics/deployment.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ metadata:
55
name: {{ include "supabase.analytics.fullname" . }}
66
labels:
77
{{- include "supabase.labels" . | nindent 4 }}
8+
{{- with .Values.analytics.deployment.annotations }}
9+
annotations:
10+
{{- toYaml . | nindent 4 }}
11+
{{- end }}
812
spec:
913
{{- if not .Values.analytics.autoscaling.enabled }}
1014
replicas: {{ .Values.analytics.replicaCount }}
@@ -70,10 +74,12 @@ spec:
7074
- name: {{ $key }}
7175
value: {{ $value | quote }}
7276
{{- end }}
73-
{{- if .Values.db.enabled }}
7477
- name: DB_HOSTNAME
75-
value: {{ include "supabase.db.fullname" . }}
76-
{{- end }}
78+
{{- if .Values.db.enabled }}
79+
value: {{ include "supabase.db.fullname" . | quote }}
80+
{{- else }}
81+
value: {{ .Values.auth.environment.DB_HOST | quote }}
82+
{{- end }}
7783
- name: DB_PASSWORD
7884
valueFrom:
7985
secretKeyRef:

charts/supabase/templates/analytics/service.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ metadata:
55
name: {{ include "supabase.analytics.fullname" . }}
66
labels:
77
{{- include "supabase.labels" . | nindent 4 }}
8+
{{- with .Values.analytics.service.annotations }}
9+
annotations:
10+
{{- toYaml . | nindent 4 }}
11+
{{- end }}
812
spec:
913
type: {{ .Values.analytics.service.type }}
1014
ports:

charts/supabase/templates/auth/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ metadata:
55
name: {{ include "supabase.auth.fullname" . }}
66
labels:
77
{{- include "supabase.labels" . | nindent 4 }}
8+
{{- with .Values.auth.deployment.annotations }}
9+
annotations:
10+
{{- toYaml . | nindent 4 }}
11+
{{- end }}
812
spec:
913
{{- if not .Values.auth.autoscaling.enabled }}
1014
replicas: {{ .Values.auth.replicaCount }}

charts/supabase/templates/auth/service.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ metadata:
55
name: {{ include "supabase.auth.fullname" . }}
66
labels:
77
{{- include "supabase.labels" . | nindent 4 }}
8+
{{- with .Values.auth.service.annotations }}
9+
annotations:
10+
{{- toYaml . | nindent 4 }}
11+
{{- end }}
812
spec:
913
type: {{ .Values.auth.service.type }}
1014
ports:

charts/supabase/templates/db/service.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ metadata:
55
name: {{ include "supabase.db.fullname" . }}
66
labels:
77
{{- include "supabase.labels" . | nindent 4 }}
8+
{{- with .Values.db.service.annotations }}
9+
annotations:
10+
{{- toYaml . | nindent 4 }}
11+
{{- end }}
812
spec:
913
type: {{ .Values.db.service.type }}
1014
ports:

charts/supabase/templates/db/deployment.yaml renamed to charts/supabase/templates/db/statefulset.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
{{- if .Values.db.enabled -}}
22
apiVersion: apps/v1
3-
kind: Deployment
3+
kind: StatefulSet
44
metadata:
55
name: {{ include "supabase.db.fullname" . }}
66
labels:
77
{{- include "supabase.labels" . | nindent 4 }}
8+
{{- with .Values.db.deployment.annotations }}
9+
annotations:
10+
{{- toYaml . | nindent 4 }}
11+
{{- end }}
812
spec:
913
{{- if not .Values.db.autoscaling.enabled }}
1014
replicas: {{ .Values.db.replicaCount }}
@@ -58,6 +62,10 @@ spec:
5862
{{- toYaml .Values.db.securityContext | nindent 12 }}
5963
image: "{{ .Values.db.image.repository }}:{{ .Values.db.image.tag | default .Chart.AppVersion }}"
6064
imagePullPolicy: {{ .Values.db.image.pullPolicy }}
65+
lifecycle:
66+
preStop:
67+
exec:
68+
command: ["/bin/sh", "-c", "pg_ctl -D /var/lib/postgres/data -w -t 60 -m fast stop"]
6169
env:
6270
{{- range $key, $value := .Values.db.environment }}
6371
- name: {{ $key }}
@@ -170,4 +178,4 @@ spec:
170178
tolerations:
171179
{{- toYaml . | nindent 8 }}
172180
{{- end }}
173-
{{- end }}
181+
{{- end }}

charts/supabase/templates/functions/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ metadata:
55
name: {{ include "supabase.functions.fullname" . }}
66
labels:
77
{{- include "supabase.labels" . | nindent 4 }}
8+
{{- with .Values.functions.deployment.annotations }}
9+
annotations:
10+
{{- toYaml . | nindent 4 }}
11+
{{- end }}
812
spec:
913
{{- if not .Values.functions.autoscaling.enabled }}
1014
replicas: {{ .Values.functions.replicaCount }}

charts/supabase/templates/functions/service.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ metadata:
55
name: {{ include "supabase.functions.fullname" . }}
66
labels:
77
{{- include "supabase.labels" . | nindent 4 }}
8+
{{- with .Values.functions.service.annotations }}
9+
annotations:
10+
{{- toYaml . | nindent 4 }}
11+
{{- end }}
812
spec:
913
type: {{ .Values.functions.service.type }}
1014
ports:

0 commit comments

Comments
 (0)