| {{/* vim: set filetype=mustache: */}} |
| {{/* |
| Return the proper Storage Class |
| {{ include "common.storage.class" ( dict "persistence" .Values.path.to.the.persistence "global" $) }} |
| */}} |
| {{- define "zookeeper.storage.class" -}} |
| |
| {{- $storageClass := .vpersistence.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 -}} |