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
|
2022-01-11 13:25:46 +00:00
|
|
|
labels:
|
|
|
|
{{- include "kubezero-lib.labels" . | nindent 4 }}
|
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 }}
|
2024-05-23 21:19:49 +00:00
|
|
|
volumeBindingMode: WaitForFirstConsumer
|
2021-07-21 11:26:56 +00:00
|
|
|
reclaimPolicy: Delete
|
2024-05-23 21:19:49 +00:00
|
|
|
allowVolumeExpansion: true
|
2021-07-21 11:26:56 +00:00
|
|
|
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 }}
|