mirror of
https://github.com/bitnami/charts.git
synced 2026-03-14 06:47:28 +08:00
* [bitnami/several] Change pullPolicy for bitnami-shell image * Add rolling tag check in the NOTES.txt * Fix non-standard names * Use macro when defined * Update Chart.yaml * Fix typo
55 lines
1.9 KiB
Smarty
55 lines
1.9 KiB
Smarty
{{/*
|
|
Return the proper certificate image name
|
|
*/}}
|
|
{{- define "certificates.image" -}}
|
|
{{- include "common.images.image" ( dict "imageRoot" .Values.certificates.image "global" .Values.global ) -}}
|
|
{{- end -}}
|
|
|
|
{{/*
|
|
Return the proper DokuWiki image name
|
|
*/}}
|
|
{{- define "dokuwiki.image" -}}
|
|
{{- include "common.images.image" ( dict "imageRoot" .Values.image "global" .Values.global ) -}}
|
|
{{- end -}}
|
|
|
|
{{/*
|
|
Return the proper image name (for the metrics image)
|
|
*/}}
|
|
{{- define "dokuwiki.metrics.image" -}}
|
|
{{- include "common.images.image" ( dict "imageRoot" .Values.metrics.image "global" .Values.global ) -}}
|
|
{{- end -}}
|
|
|
|
{{/*
|
|
Return the proper image name (for the init container volume-permissions image)
|
|
*/}}
|
|
{{- define "dokuwiki.volumePermissions.image" -}}
|
|
{{- include "common.images.image" ( dict "imageRoot" .Values.volumePermissions.image "global" .Values.global ) -}}
|
|
{{- end -}}
|
|
|
|
{{/*
|
|
Return the proper Docker Image Registry Secret Names
|
|
*/}}
|
|
{{- define "dokuwiki.imagePullSecrets" -}}
|
|
{{- include "common.images.pullSecrets" (dict "images" (list .Values.image .Values.metrics.image .Values.volumePermissions.image .Values.certificates.image) "global" .Values.global) -}}
|
|
{{- end -}}
|
|
|
|
{{/*
|
|
Return the proper Storage Class
|
|
*/}}
|
|
{{- define "dokuwiki.storageClass" -}}
|
|
{{- include "common.storage.class" ( dict "persistence" .Values.persistence "global" .Values.global ) -}}
|
|
{{- end -}}
|
|
|
|
{{/* Dokuwiki credential secret name */}}
|
|
{{- define "dokuwiki.secretName" -}}
|
|
{{- coalesce .Values.existingSecret (include "common.names.fullname" .) -}}
|
|
{{- end -}}
|
|
|
|
{{/* Check if there are rolling tags in the images */}}
|
|
{{- define "dokuwiki.checkRollingTags" -}}
|
|
{{- include "common.warnings.rollingTag" .Values.image -}}
|
|
{{- include "common.warnings.rollingTag" .Values.metrics.image -}}
|
|
{{- include "common.warnings.rollingTag" .Values.volumePermissions.image -}}
|
|
{{- include "common.warnings.rollingTag" .Values.certificates.image -}}
|
|
{{- end -}}
|