{{ if .Values.storageClass.create -}}
---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
 name: {{ .Values.storageClass.name }}
 labels:
   plugin: {{ .Release.Name }}
 {{- if .Values.storageClass.defaultClass }}
 annotations:
   storageclass.kubernetes.io/is-default-class: "true"
 {{- end }}
provisioner: hpe.com/{{ .Values.pluginType }}
parameters:
  description: {{ .Values.volumeDescription }}
{{- end }}
