Skip to content
Snippets Groups Projects
Commit 67b79326 authored by nltimv's avatar nltimv Committed by Derek Su
Browse files

Set default volume type from helm chart

(cherry picked from commit fc4aeffd)
parent 3de18af3
Branches
Tags
No related merge requests found
...@@ -61,6 +61,7 @@ default values. ...@@ -61,6 +61,7 @@ default values.
| `storageClass.create` | If true, create a `StorageClass` | `true` | | `storageClass.create` | If true, create a `StorageClass` | `true` |
| `storageClass.provisionerName` | The provisioner name for the storage class | `nil` | | `storageClass.provisionerName` | The provisioner name for the storage class | `nil` |
| `storageClass.defaultClass` | If true, set the created `StorageClass` as the cluster's default `StorageClass` | `false` | | `storageClass.defaultClass` | If true, set the created `StorageClass` as the cluster's default `StorageClass` | `false` |
| `storageClass.defaultVolumeType` | The default volume type this storage class creates | `local` |
| `storageClass.name` | The name to assign the created StorageClass | local-path | | `storageClass.name` | The name to assign the created StorageClass | local-path |
| `storageClass.reclaimPolicy` | ReclaimPolicy field of the class | Delete | | `storageClass.reclaimPolicy` | ReclaimPolicy field of the class | Delete |
| `nodePathMap` | Configuration of where to store the data on each node | `[{node: DEFAULT_PATH_FOR_NON_LISTED_NODES, paths: [/opt/local-path-provisioner]}]` | | `nodePathMap` | Configuration of where to store the data on each node | `[{node: DEFAULT_PATH_FOR_NON_LISTED_NODES, paths: [/opt/local-path-provisioner]}]` |
......
...@@ -5,10 +5,9 @@ metadata: ...@@ -5,10 +5,9 @@ metadata:
name: {{ .Values.storageClass.name }} name: {{ .Values.storageClass.name }}
labels: labels:
{{ include "local-path-provisioner.labels" . | indent 4 }} {{ include "local-path-provisioner.labels" . | indent 4 }}
{{- if .Values.storageClass.defaultClass }}
annotations: annotations:
storageclass.kubernetes.io/is-default-class: "true" storageclass.kubernetes.io/is-default-class: "{{ .Values.storageClass.defaultClass }}"
{{- end }} defaultVolumeType: "{{ .Values.storageClass.defaultVolumeType }}"
provisioner: {{ template "local-path-provisioner.provisionerName" . }} provisioner: {{ template "local-path-provisioner.provisionerName" . }}
volumeBindingMode: {{ .Values.storageClass.volumeBindingMode }} volumeBindingMode: {{ .Values.storageClass.volumeBindingMode }}
reclaimPolicy: {{ .Values.storageClass.reclaimPolicy }} reclaimPolicy: {{ .Values.storageClass.reclaimPolicy }}
......
...@@ -34,6 +34,9 @@ storageClass: ...@@ -34,6 +34,9 @@ storageClass:
## Ignored if storageClass.create is false ## Ignored if storageClass.create is false
defaultClass: false defaultClass: false
## The default volume type this storage class creates, can be "local" or "hostPath"
defaultVolumeType: local
## Set a StorageClass name ## Set a StorageClass name
## Ignored if storageClass.create is false ## Ignored if storageClass.create is false
name: local-path name: local-path
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment