templates/_helpers.tpl aktualisiert

This commit is contained in:
2025-11-06 13:57:55 +00:00
parent 3c427e56fe
commit 057e882269

View File

@@ -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 -}}