kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
  name: longhorn
  {{- if .Values.persistence.defaultClass }}
  annotations:
    storageclass.beta.kubernetes.io/is-default-class: "true"
  {{- else }}
  annotations:
    storageclass.beta.kubernetes.io/is-default-class: "false"
  {{- end }}
provisioner: rancher.io/longhorn
parameters:
  numberOfReplicas: "{{ .Values.persistence.defaultClassReplicaCount }}"
  staleReplicaTimeout: "30"
  fromBackup: ""
  baseImage: ""

kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
  name: longhorn
  {{- if .Values.persistence.defaultClass }}
  annotations:
    storageclass.beta.kubernetes.io/is-default-class: "true"
  {{- else }}
  annotations:
    storageclass.beta.kubernetes.io/is-default-class: "false"
  {{- end }}
provisioner: driver.longhorn.io
parameters:
  numberOfReplicas: "{{ .Values.persistence.defaultClassReplicaCount }}"
  staleReplicaTimeout: "30"
  fromBackup: ""
  baseImage: ""

Update StorageClass with new driver name
helm: Update StorageClass with new driver name

Signed-off-by: Shuo Wu <af3b8ec040de751c52692625d2cecdba877f06bf@rancher.com>
Signed-off-by: Sheng Yang <147fd7034704a96aa91f641610a6d7a9748e39bc@rancher.com>
