templates/_helpers.tpl aktualisiert
This commit is contained in:
@@ -65,19 +65,3 @@ Create the name of the service account to use
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{/*
|
|
||||||
Return the MariaDB Secret Name
|
|
||||||
*/}}
|
|
||||||
{{- define "librebooking.databaseSecretName" -}}
|
|
||||||
{{- if .Values.mariadb.enabled }}
|
|
||||||
{{- if .Values.mariadb.auth.existingSecret -}}
|
|
||||||
{{- printf "%s" .Values.mariadb.auth.existingSecret -}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- printf "%s" (include "librebooking.mariadb.fullname" .) -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- else if .Values.externalDatabase.existingSecret -}}
|
|
||||||
{{- printf "%s" .Values.externalDatabase.existingSecret -}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- printf "%s-db-secrets" (include "librebooking.fullname" .) -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
Reference in New Issue
Block a user