mirror of https://git.rancher.io/charts
17 lines
574 B
YAML
17 lines
574 B
YAML
{{- if .Values.storageClass.enabled -}}
|
|
apiVersion: storage.k8s.io/v1
|
|
kind: StorageClass
|
|
metadata:
|
|
name: {{ .Values.storageClass.name | quote }}
|
|
annotations:
|
|
storageclass.kubernetes.io/is-default-class: {{ .Values.storageClass.isDefault | quote }}
|
|
provisioner: csi.vsphere.vmware.com
|
|
parameters:
|
|
{{- if .Values.storageClass.datastoreURL }}
|
|
datastoreURL: {{ .Values.storageClass.datastoreURL | quote }}
|
|
{{- end }}
|
|
{{- if .Values.storageClass.storagePolicyName }}
|
|
storagepolicyname: {{ .Values.storageClass.storagePolicyName | quote }}
|
|
{{- end }}
|
|
{{- end -}}
|