mirror of
https://github.com/bitnami/charts.git
synced 2026-03-11 15:37:20 +08:00
* Add copyright header Signed-off-by: sfelipe <sfelipe@vmware.com> * Remove copyright from vib runtime_parameters files Signed-off-by: sfelipe <sfelipe@vmware.com> * Add copyright header for pinniped-auth.sh Signed-off-by: sfelipe <sfelipe@vmware.com> * Update templates copyright header format Signed-off-by: sfelipe <sfelipe@vmware.com> --------- Signed-off-by: sfelipe <sfelipe@vmware.com>
29 lines
698 B
Smarty
29 lines
698 B
Smarty
{{/*
|
|
Copyright VMware, Inc.
|
|
SPDX-License-Identifier: APACHE-2.0
|
|
*/}}
|
|
|
|
{{/* vim: set filetype=mustache: */}}
|
|
{{/*
|
|
Return the proper Storage Class
|
|
{{ include "common.storage.class" ( dict "persistence" .Values.path.to.the.persistence "global" $) }}
|
|
*/}}
|
|
{{- define "common.storage.class" -}}
|
|
|
|
{{- $storageClass := .persistence.storageClass -}}
|
|
{{- if .global -}}
|
|
{{- if .global.storageClass -}}
|
|
{{- $storageClass = .global.storageClass -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|
|
{{- if $storageClass -}}
|
|
{{- if (eq "-" $storageClass) -}}
|
|
{{- printf "storageClassName: \"\"" -}}
|
|
{{- else }}
|
|
{{- printf "storageClassName: %s" $storageClass -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|