Merge pull request #1722 from fzamperin/master

Fix externalClickhouse password secret
This commit is contained in:
Simon Larsen 2024-09-30 13:54:36 +01:00 committed by GitHub
commit 3f8c62747a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -123,26 +123,26 @@ metadata:
annotations:
"helm.sh/resource-policy": "keep"
type: Opaque
data:
stringData:
key: "clickhouse"
{{- if $.Values.externalClickhouse.password }}
## Add secret here for clickhousePassword
password: {{ $.Values.externalClickhouse.password | b64enc | quote }}
password: {{ $.Values.externalClickhouse.password | quote }}
{{- end }}
## Add TLS secret here for clickhouse
{{- if $.Values.externalClickhouse.tls.enabled -}}
{{- if $.Values.externalClickhouse.tls.ca }}
tls-ca: {{ printf "%s" $.Values.externalClickhouse.tls.ca | b64enc | quote }}
tls-ca: {{ printf "%s" $.Values.externalClickhouse.tls.ca | quote }}
{{- end }}
{{- if $.Values.externalClickhouse.tls.cert }}
tls-cert: {{ printf "%s" $.Values.externalClickhouse.tls.cert | b64enc | quote }}
tls-cert: {{ printf "%s" $.Values.externalClickhouse.tls.cert | quote }}
{{- end }}
{{- if $.Values.externalClickhouse.tls.key }}
tls-key: {{ printf "%s" $.Values.externalClickhouse.tls.key | quote | b64enc | quote }}
tls-key: {{ printf "%s" $.Values.externalClickhouse.tls.key | quote }}
{{- end }}
{{- end -}}