Skip to content

Commit 700d860

Browse files
jamesandarieseludomikula
authored andcommitted
allow deployment when monthdb.auth.existingSecret is not specified
1 parent 5476790 commit 700d860

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

deploy/helm/templates/api-service/configMap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{{- $name := include "lowcoder.fullname" . -}}
33
{{- $lowcoderDatabase := first .Values.mongodb.auth.databases -}}
44
{{- $redisSecret := lookup "v1" "Secret" $nameSpace .Values.redis.auth.existingSecret | default dict -}}
5-
{{- $redisPassword := (index $redisSecret.data .Values.redis.auth.existingSecretPasswordKey | default "" | b64dec) -}}
5+
{{- $redisPassword := (index ($redisSecret.data|default dict) .Values.redis.auth.existingSecretPasswordKey | default "" | b64dec) -}}
66

77
apiVersion: v1
88
kind: ConfigMap

deploy/helm/templates/api-service/secrets.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{{- $mongoPassword := (and .Values.mongodb.auth.passwords (first .Values.mongodb.auth.passwords)) | default "" -}}
44
{{- $lowcoderDatabase := first .Values.mongodb.auth.databases -}}
55
{{- $mongoSecret := lookup "v1" "Secret" $nameSpace .Values.mongodb.auth.existingSecret | default dict -}}
6-
{{- $mongoSecretPassword := (index $mongoSecret.data "password" | default "" | b64dec) -}}
6+
{{- $mongoSecretPassword := (index ($mongoSecret.data | default dict) "password" | default "" | b64dec) -}}
77
{{- $mongoServicename := .Values.mongodb.service.nameOverride | default "" -}}
88
{{- $externalUrl := .Values.mongodb.service.externalUrl -}}
99

0 commit comments

Comments
 (0)