Skip to content

Commit

Permalink
update[storage-charts-repackage]: add storage-charts-repackage values…
Browse files Browse the repository at this point in the history
….schema.json values.yaml revert update

Signed-off-by: jie.li <jie.li@daocloud.io>
  • Loading branch information
angel0507 committed Jan 10, 2023
1 parent 47e3f1c commit 0c09958
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 23 deletions.
20 changes: 12 additions & 8 deletions charts/hwameistor/hwameistor/templates/storageclass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,27 @@
{{- end -}}
{{- end -}}

{{- if .Values.storageClass.enabled -}}
{{- range $storageclass := .Values.storageClass -}}
---

{{- if $storageclass.enabled -}}
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
annotations:
storageclass.kubernetes.io/is-default-class: {{ .Values.storageClass.default | quote }}
name: hwameistor-storage-lvm-{{ .Values.storageClass.diskType | lower}}
storageclass.kubernetes.io/is-default-class: {{ $storageclass.default | quote }}
name: hwameistor-storage-lvm-{{ $storageclass.diskType | lower}}
provisioner: lvm.hwameistor.io
volumeBindingMode: WaitForFirstConsumer
allowVolumeExpansion: {{ .Values.storageClass.allowVolumeExpansion }}
reclaimPolicy: {{ .Values.storageClass.reclaimPolicy }}
allowVolumeExpansion: {{ $storageclass.allowVolumeExpansion }}
reclaimPolicy: {{ $storageclass.reclaimPolicy }}
parameters:
replicaNumber: {{ include "replicaNumber" . | quote}}
poolClass: {{ .Values.storageClass.diskType | quote}}
poolClass: {{ $storageclass.diskType | quote}}
poolType: "REGULAR"
volumeKind: "LVM"
striped: "true"
convertible: {{ .Values.storageClass.convertible | quote}}
csi.storage.k8s.io/fstype: {{ .Values.storageClass.fsType | quote}}
convertible: {{ $storageclass.convertible | quote}}
csi.storage.k8s.io/fstype: {{ $storageclass.fsType | quote}}
{{- end }}
{{ end }}
30 changes: 15 additions & 15 deletions charts/hwameistor/hwameistor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@ global:
# StorageClass Settings
storageClass:
# If enabled, a hwameistor storageclass will be created in your system
enabled: true
# If enabled, hwameistor storageclass will be a default storageclass in system
# Attention: ensure your system doesn't have any default storageclass before
# more info: https://kubernetes.io/docs/tasks/administer-cluster/change-default-storage-class/
default: false
# If allowed, volume can be expanded by modify pvc related field
allowVolumeExpansion: true
convertible: false
reclaimPolicy: Delete
# If enabled, you need install drbd kernel module on each node first
enableHA: false
# Represent which kind disk will be used to provision volume
diskType: HDD
fsType: xfs
- enabled: true
# If enabled, hwameistor storageclass will be a default storageclass in system
# Attention: ensure your system doesn't have any default storageclass before
# more info: https://kubernetes.io/docs/tasks/administer-cluster/change-default-storage-class/
default: false
# If allowed, volume can be expanded by modify pvc related field
allowVolumeExpansion: true
convertible: false
reclaimPolicy: Delete
# If enabled, you need install drbd kernel module on each node first
enableHA: false
# Represent which kind disk will be used to provision volume
diskType: HDD
fsType: xfs

# storageNodes means the nodes will be used for creating local volumes
storageNodes: []
Expand Down Expand Up @@ -123,4 +123,4 @@ localStorageCSIController:
resizer:
imageRepository: sig-storage/csi-resizer
tag: v1.0.1
resources: {}
resources: {}

0 comments on commit 0c09958

Please sign in to comment.