Skip to content

Commit 0ca2ee9

Browse files
Merge pull request supabase-community#6 from cpdeethree/disable-kong
feat: provide ability to disable kong
2 parents 2f95f43 + 23a43c3 commit 0ca2ee9

File tree

6 files changed

+22
-11
lines changed

6 files changed

+22
-11
lines changed

charts/supabase/templates/kong/config.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if .Values.kong.enable -}}
12
apiVersion: v1
23
kind: ConfigMap
34
metadata:
@@ -147,3 +148,4 @@ data:
147148
allow:
148149
- admin
149150
{{- end }}
151+
{{- end }}

charts/supabase/templates/kong/deployment.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if .Values.kong.enable -}}
12
apiVersion: apps/v1
23
kind: Deployment
34
metadata:
@@ -70,3 +71,4 @@ spec:
7071
items:
7172
- key: kong.yml
7273
path: kong.yml
74+
{{- end }}

charts/supabase/templates/kong/ingress.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if .Values.kong.enable -}}
12
{{- if .Values.kong.ingress.enabled -}}
23
{{- $fullName := include "supabase.kong.fullname" . -}}
34
{{- $svcPort := .Values.kong.service.port -}}
@@ -53,3 +54,4 @@ spec:
5354
{{- end }}
5455
{{- end }}
5556
{{- end }}
57+
{{- end }}

charts/supabase/templates/kong/service.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if .Values.kong.enable -}}
12
apiVersion: v1
23
kind: Service
34
metadata:
@@ -13,3 +14,4 @@ spec:
1314
name: http
1415
selector:
1516
{{- include "supabase.kong.selectorLabels" . | nindent 4 }}
17+
{{- end }}
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
{{- if .Values.kong.serviceAccount.create -}}
2-
apiVersion: v1
3-
kind: ServiceAccount
4-
metadata:
5-
name: {{ include "supabase.kong.serviceAccountName" . }}
6-
labels:
7-
{{- include "supabase.labels" . | nindent 4 }}
8-
{{- with .Values.kong.serviceAccount.annotations }}
9-
annotations:
10-
{{- toYaml . | nindent 4 }}
1+
{{- if .Values.kong.enable -}}
2+
{{- if .Values.kong.serviceAccount.create -}}
3+
apiVersion: v1
4+
kind: ServiceAccount
5+
metadata:
6+
name: {{ include "supabase.kong.serviceAccountName" . }}
7+
labels:
8+
{{- include "supabase.labels" . | nindent 4 }}
9+
{{- with .Values.kong.serviceAccount.annotations }}
10+
annotations:
11+
{{- toYaml . | nindent 4 }}
12+
{{- end }}
1113
{{- end }}
12-
{{- end }}
14+
{{- end }}

charts/supabase/values.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,7 @@ storage:
518518
affinity: {}
519519

520520
kong:
521+
enable: true
521522
replicaCount: 1
522523
image:
523524
repository: kong

0 commit comments

Comments
 (0)