feat(common): add support for custom set mariadb (root)password

This commit is contained in:
Kjeld Schouten
2024-04-06 16:08:07 +02:00
committed by GitHub
parent a2d0b9ad5a
commit 24438933fe

View File

@@ -20,6 +20,16 @@ This template generates a random password and ensures it persists across updates
{{- $rootPass = (index $dbpreviousold.data "mariadb-root-password") | b64dec -}}
{{- end -}}
{{/* Override with custom-set password */}}
{{- if .Values.mariadb.password -}}
{{- $dbPass = .Values.mariadb.password -}}
{{- end -}}
{{/* Override with custom-set root-password */}}
{{- if .Values.mariadb.rootPassword -}}
{{- $rootPass = .Values.mariadb.rootPassword -}}
{{- end -}}
{{/* Prepare data */}}
{{- $dbhost := printf "%v-%v" .Release.Name "mariadb" -}}
{{- $portHost := printf "%v:3306" $dbhost -}}