From 09013cc3c972b315c1d82748165580fb44ab1d7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vytautas=20Berta=C5=A1ius?= Date: Thu, 4 Sep 2025 00:29:01 +0300 Subject: [PATCH] Use secret.analytics secretKeyRef in studio deployment --- charts/supabase/templates/studio/deployment.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/charts/supabase/templates/studio/deployment.yaml b/charts/supabase/templates/studio/deployment.yaml index dc4d9f84..9ea15fdb 100644 --- a/charts/supabase/templates/studio/deployment.yaml +++ b/charts/supabase/templates/studio/deployment.yaml @@ -73,8 +73,13 @@ spec: - name: LOGFLARE_API_KEY valueFrom: secretKeyRef: + {{- if .Values.secret.analytics.secretRef }} + name: {{ .Values.secret.analytics.secretRef }} + key: {{ .Values.secret.analytics.secretRefKey.apiKey | default "apiKey" }} + {{- else }} name: {{ include "supabase.secret.analytics" . }} key: apiKey + {{- end }} {{- end }} {{- with .Values.studio.livenessProbe }} livenessProbe: @@ -112,4 +117,4 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} -{{- end }} \ No newline at end of file +{{- end }}