mirror of
https://github.com/bitnami/charts.git
synced 2026-03-13 14:57:24 +08:00
* Drop Helm 2 support and update mariadb major * Fix typos * Fix typos * Add update section * Fix typos * Change externaldb secret key * Update images revision * Add Helm v2 EOL support * Apply suggestions from code review Co-authored-by: Carlos Rodríguez Hernández <carlosrh@vmware.com> * Fix typos * Format/Fix linter issues in yaml * [bitnami/joomla] Update components versions Signed-off-by: Bitnami Containers <containers@bitnami.com> Co-authored-by: fdepaz <fdepaz@bitnami.com> Co-authored-by: Carlos Rodríguez Hernández <carlosrh@vmware.com> Co-authored-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com> Co-authored-by: Bitnami Containers <containers@bitnami.com>
108 lines
3.1 KiB
Smarty
108 lines
3.1 KiB
Smarty
{{/*
|
|
Create a default fully qualified app name.
|
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
|
*/}}
|
|
{{- define "joomla.mariadb.fullname" -}}
|
|
{{- printf "%s-%s" .Release.Name "mariadb" | trunc 63 | trimSuffix "-" -}}
|
|
{{- end -}}
|
|
|
|
{{/*
|
|
Return the proper Joomla! image name
|
|
*/}}
|
|
{{- define "joomla.image" -}}
|
|
{{- include "common.images.image" ( dict "imageRoot" .Values.image "global" .Values.global ) -}}
|
|
{{- end -}}
|
|
|
|
{{/*
|
|
Return the proper image name (for the metrics image)
|
|
*/}}
|
|
{{- define "joomla.metrics.image" -}}
|
|
{{- include "common.images.image" ( dict "imageRoot" .Values.metrics.image "global" .Values.global ) -}}
|
|
{{- end -}}
|
|
|
|
{{/*
|
|
Return the proper Docker Image Registry Secret Names
|
|
*/}}
|
|
{{- define "joomla.imagePullSecrets" -}}
|
|
{{- include "common.images.pullSecrets" (dict "images" (list .Values.image .Values.metrics.image) "global" .Values.global) -}}
|
|
{{- end -}}
|
|
|
|
{{/*
|
|
Return the proper Storage Class
|
|
*/}}
|
|
{{- define "joomla.storageClass" -}}
|
|
{{- include "common.storage.class" ( dict "persistence" .Values.persistence "global" .Values.global ) -}}
|
|
{{- end -}}
|
|
|
|
{{/* Joomla! credential secret name */}}
|
|
{{- define "joomla.secretName" -}}
|
|
{{- coalesce .Values.existingSecret (include "common.names.fullname" .) -}}
|
|
{{- end -}}
|
|
|
|
{{/* Check if there are rolling tags in the images */}}
|
|
{{- define "joomla.checkRollingTags" -}}
|
|
{{- include "common.warnings.rollingTag" .Values.image -}}
|
|
{{- include "common.warnings.rollingTag" .Values.metrics.image -}}
|
|
{{- end -}}
|
|
|
|
{{/*
|
|
Return the MariaDB Hostname
|
|
*/}}
|
|
{{- define "joomla.databaseHost" -}}
|
|
{{- if .Values.mariadb.enabled }}
|
|
{{- if eq .Values.mariadb.architecture "replication" }}
|
|
{{- printf "%s-%s" (include "joomla.mariadb.fullname" .) "primary" | trunc 63 | trimSuffix "-" -}}
|
|
{{- else -}}
|
|
{{- printf "%s" (include "joomla.mariadb.fullname" .) -}}
|
|
{{- end -}}
|
|
{{- else -}}
|
|
{{- printf "%s" .Values.externalDatabase.host -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|
|
{{/*
|
|
Return the MariaDB Port
|
|
*/}}
|
|
{{- define "joomla.databasePort" -}}
|
|
{{- if .Values.mariadb.enabled }}
|
|
{{- printf "3306" -}}
|
|
{{- else -}}
|
|
{{- printf "%d" (.Values.externalDatabase.port | int ) -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|
|
{{/*
|
|
Return the MariaDB Database Name
|
|
*/}}
|
|
{{- define "joomla.databaseName" -}}
|
|
{{- if .Values.mariadb.enabled }}
|
|
{{- printf "%s" .Values.mariadb.auth.database -}}
|
|
{{- else -}}
|
|
{{- printf "%s" .Values.externalDatabase.database -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|
|
{{/*
|
|
Return the MariaDB User
|
|
*/}}
|
|
{{- define "joomla.databaseUser" -}}
|
|
{{- if .Values.mariadb.enabled }}
|
|
{{- printf "%s" .Values.mariadb.auth.username -}}
|
|
{{- else -}}
|
|
{{- printf "%s" .Values.externalDatabase.user -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|
|
{{/*
|
|
Return the MariaDB Secret Name
|
|
*/}}
|
|
{{- define "joomla.databaseSecretName" -}}
|
|
{{- if .Values.mariadb.enabled }}
|
|
{{- printf "%s" (include "joomla.mariadb.fullname" .) -}}
|
|
{{- else if .Values.externalDatabase.existingSecret -}}
|
|
{{- printf "%s" .Values.externalDatabase.existingSecret -}}
|
|
{{- else -}}
|
|
{{- printf "%s-%s" .Release.Name "externaldb" -}}
|
|
{{- end -}}
|
|
{{- end -}}
|