This repository has been archived by the owner on Jun 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1559 from kinvolk/knrt10/openebs-storage-class-helm
openebs-storage-class: Move to Helm Chart
- Loading branch information
Showing
8 changed files
with
253 additions
and
62 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
assets/charts/components/openebs-storage-class/.helmignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# 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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: v2 | ||
name: openebs-storage-class | ||
description: A Helm chart for Kubernetes | ||
type: application | ||
version: 0.1.0 | ||
|
||
# This should match the value of the openebs-operator helm chart. | ||
appVersion: "2.10.0" |
36 changes: 36 additions & 0 deletions
36
assets/charts/components/openebs-storage-class/templates/storage-class.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{{- range .Values.storageClasses }} | ||
--- | ||
apiVersion: storage.k8s.io/v1 | ||
kind: StorageClass | ||
metadata: | ||
name: {{ .name }} | ||
annotations: | ||
openebs.io/cas-type: cstor | ||
storageclass.kubernetes.io/is-default-class: "{{ .default }}" | ||
cas.openebs.io/config: | | ||
- name: StoragePoolClaim | ||
value: "cstor-pool-{{ .name }}" | ||
- name: ReplicaCount | ||
value: "{{ .replicaCount }}" | ||
provisioner: openebs.io/provisioner-iscsi | ||
reclaimPolicy: "{{ .reclaimPolicy }}" | ||
--- | ||
apiVersion: openebs.io/v1alpha1 | ||
kind: StoragePoolClaim | ||
metadata: | ||
name: cstor-pool-{{ .name }} | ||
spec: | ||
name: cstor-pool-{{ .name }} | ||
type: disk | ||
maxPools: 3 | ||
poolSpec: | ||
poolType: striped | ||
{{- if .disks }} | ||
blockDevices: | ||
blockDeviceList: | ||
{{range .disks -}} | ||
- {{.}} | ||
{{end}} | ||
{{- end }} | ||
--- | ||
{{end}} |
15 changes: 15 additions & 0 deletions
15
assets/charts/components/openebs-storage-class/values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
storageClasses: | ||
- name: test | ||
default: false | ||
reclaimPolicy: Retain | ||
replicaCount: 1 | ||
# disks: | ||
# - foo | ||
# - bar | ||
# - name: notest | ||
# default: false | ||
# reclaimPolicy: Retain | ||
# replicaCount: 1 | ||
# disks: | ||
# - baz | ||
# - zab |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters