From 799d60beed38703ff851bb10114ff1c8f12a4e1d Mon Sep 17 00:00:00 2001 From: Christos Alexiou Date: Mon, 8 Apr 2024 19:17:55 +0300 Subject: [PATCH] Revert "Remove condition for looking up existing secret" This reverts commit dde52c6f93ec5ac559307ba11fa6c70bdda92588. --- charts/budibase/templates/secrets.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/charts/budibase/templates/secrets.yaml b/charts/budibase/templates/secrets.yaml index 73ce25dc84..263934187e 100644 --- a/charts/budibase/templates/secrets.yaml +++ b/charts/budibase/templates/secrets.yaml @@ -1,3 +1,4 @@ +{{- $existingSecret := lookup "v1" "Secret" .Release.Namespace (include "budibase.fullname" .) }} {{- if .Values.globals.createSecrets }} apiVersion: v1 kind: Secret @@ -20,4 +21,5 @@ data: jwtSecret: {{ template "budibase.defaultsecret" .Values.globals.jwtSecret }} objectStoreAccess: {{ template "budibase.defaultsecret" .Values.services.objectStore.accessKey }} objectStoreSecret: {{ template "budibase.defaultsecret" .Values.services.objectStore.secretKey }} + {{- end }} {{- end }}