2021-08-31 15:25:50 +00:00
|
|
|
{{- if index .Values "lvm-localpv" "enabled" }}
|
2021-07-21 11:26:56 +00:00
|
|
|
apiVersion: storage.k8s.io/v1
|
|
|
|
kind: StorageClass
|
|
|
|
metadata:
|
|
|
|
name: openebs-lvm
|
2021-08-31 15:25:50 +00:00
|
|
|
{{- if index .Values "lvm-localpv" "storageClass" "default" }}
|
2021-08-02 09:52:07 +00:00
|
|
|
annotations:
|
|
|
|
storageclass.kubernetes.io/is-default-class: "true"
|
|
|
|
{{- end }}
|
2021-07-21 11:26:56 +00:00
|
|
|
volumeBindingMode: WaitForFirstConsumer
|
|
|
|
reclaimPolicy: Delete
|
|
|
|
parameters:
|
|
|
|
storage: lvm
|
2021-08-31 15:25:50 +00:00
|
|
|
vgpattern: {{ default "openebs.*" ( index .Values "lvm-localpv" "storageClass" "vgpattern") }}
|
2021-07-21 11:26:56 +00:00
|
|
|
fsType: xfs
|
|
|
|
provisioner: local.csi.openebs.io
|
2021-08-31 15:25:50 +00:00
|
|
|
{{- end }}
|