--- /dev/null
+# Patterns to ignore when building packages.
+# This supports shell glob matching, relative path matching, and
+# negation (prefixed with !). Only one pattern per line.
+.DS_Store
+# Common VCS dirs
+.git/
+.gitignore
+.bzr/
+.bzrignore
+.hg/
+.hgignore
+.svn/
+# Common backup files
+*.swp
+*.bak
+*.tmp
+*.orig
+*~
+# Various IDEs
+.project
+.idea/
+*.tmproj
+.vscode/
--- /dev/null
+# A simple chart to create a StorageClass from a single cStor pool of
+# all available block devices in the cluster. This is far from
+# optimal, but it is sufficient for getting up and running initially.
+apiVersion: v2
+name: openebs-cstor
+type: application
+version: 0.1.0
--- /dev/null
+apiVersion: cstor.openebs.io/v1
+kind: CStorPoolCluster
+metadata:
+ name: {{ .Release.Name }}-disk-pool
+spec:
+ pools:
+{{ range $index, $bd := (lookup "openebs.io/v1alpha1" "BlockDevice" .Release.Namespace "").items }}
+ - nodeSelector:
+ kubernetes.io/hostname: {{ $bd.spec.nodeAttributes.nodeName }}
+ dataRaidGroups:
+ - blockDevices:
+ - blockDeviceName: {{ $bd.metadata.name }}
+ poolConfig:
+ dataRaidGroupType: {{ $.Values.dataRaidGroupType }}
+{{ end }}
+
--- /dev/null
+kind: StorageClass
+apiVersion: storage.k8s.io/v1
+metadata:
+ name: {{ .Values.storageClassName }}
+provisioner: cstor.csi.openebs.io
+allowVolumeExpansion: true
+parameters:
+ cas-type: cstor
+ cstorPoolCluster: {{ .Release.Name }}-disk-pool
+ replicaCount: {{ len (lookup "openebs.io/v1alpha1" "BlockDevice" .Release.Namespace "").items | quote }}
--- /dev/null
+# storageClassName is the name of the created StorageClass.
+storageClassName: cstor-csi-disk
+
+# dataRaidGroupType may be either stripe or mirror.
+dataRaidGroupType: stripe