Skip to content

Commit 6c30e84

Browse files
committed
feat: add support to envFrom to deploy edge functions secrets
1 parent 17e14e8 commit 6c30e84

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

charts/supabase/templates/functions/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ spec:
3838
{{- toYaml .Values.functions.securityContext | nindent 12 }}
3939
image: "{{ .Values.functions.image.repository }}:{{ .Values.functions.image.tag | default .Chart.AppVersion }}"
4040
imagePullPolicy: {{ .Values.functions.image.pullPolicy }}
41+
{{- if .Values.functions.envFrom }}
42+
envFrom:
43+
{{- toYaml .Values.functions.envFrom | nindent 12 }}
44+
{{- end }}
4145
env:
4246
{{- range $key, $value := .Values.functions.environment }}
4347
- name: {{ $key }}

charts/supabase/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,6 +1035,7 @@ functions:
10351035
service:
10361036
type: ClusterIP
10371037
port: 9000
1038+
envFrom: []
10381039
environment:
10391040
# Override the database hostname if using external database
10401041
# DB_HOST: DATABASE.NAMESPACE.svc.cluster.local

0 commit comments

Comments
 (0)