3 SPDX-License-Identifier: APACHE-2.0
6 {{/* vim: set filetype=mustache: */}}
8 Return the proper Storage Class
9 {{ include "common.storage.class" ( dict "persistence" .Values.path.to.the.persistence "global" $) }}
11 {{- define "common.storage.class" -}}
13 {{- $storageClass := .persistence.storageClass -}}
15 {{- if .global.storageClass -}}
16 {{- $storageClass = .global.storageClass -}}
20 {{- if $storageClass -}}
21 {{- if (eq "-" $storageClass) -}}
22 {{- printf "storageClassName: \"\"" -}}
24 {{- printf "storageClassName: %s" $storageClass -}}