File tree 1 file changed +12
-1
lines changed
deploy/helm/templates/api-service
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 1
1
{{- $nameSpace := include "lowcoder.namespace" . -}}
2
2
{{- $name := include "lowcoder.fullname" . -}}
3
3
{{- $lowcoderDatabase := first .Values.mongodb.auth.databases -}}
4
+ {{- $redisSecret := lookup "v1" "Secret" $nameSpace .Values.redis.auth.existingSecret | default dict -}}
5
+ {{- $redisPassword := (index $redisSecret.data .Values.redis.auth.existingSecretPasswordKey | default "" | b64dec) -}}
6
+
4
7
apiVersion : v1
5
8
kind : ConfigMap
6
9
metadata :
@@ -13,9 +16,17 @@ metadata:
13
16
{{- end }}
14
17
data :
15
18
{{- if .Values.redis.enabled }}
19
+ {{- if .Values.redis.auth.enabled }}
20
+ LOWCODER_REDIS_URL : " redis://{{ $redisPassword }}@{{ $name }}-redis-master.{{ $nameSpace }}.svc.cluster.local:6379"
21
+ {{- else }}
16
22
LOWCODER_REDIS_URL : " redis://{{ $name }}-redis-master.{{ $nameSpace }}.svc.cluster.local:6379"
23
+ {{- end }}
17
24
{{- else }}
18
- LOWCODER_REDIS_URL : {{ .Values.redis.externalUrl | quote }}
25
+ {{- if .Values.redis.auth.enabled }}
26
+ LOWCODER_REDIS_URL : " redis://{{ $redisPassword }}@{{ .Values.redis.externalUrl }}"
27
+ {{- else }}
28
+ LOWCODER_REDIS_URL : " redis://{{ .Values.redis.externalUrl }}"
29
+ {{- end }}
19
30
{{- end }}
20
31
{{- if .Values.global.config.nodeServiceUrl }}
21
32
LOWCODER_NODE_SERVICE_URL : {{ .Values.global.config.nodeServiceUrl | quote }}
You can’t perform that action at this time.
0 commit comments