fix(helm): fix configmap.env template

fix: #7070
This commit is contained in:
William Yang 2022-02-26 21:30:32 +01:00
parent 3af36378dd
commit 0c2ba9fe50
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ metadata:
app.kubernetes.io/managed-by: {{ .Release.Service }}
data:
{{- range $index, $value := .Values.emqxConfig }}
{{- if ne $value nil }}
{{- if $value }}
{{- $key := (regexReplaceAllLiteral "\\." (regexReplaceAllLiteral "EMQX[_\\.]" (upper (trimAll " " $index)) "") "__") }}
{{ print "EMQX_" $key }}: {{ $value | quote }}
{{- end }}