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
No related branches found
No related tags found
No related merge requests found
......@@ -61,6 +61,7 @@ default values.
| `storageClass.create` | If true, create a `StorageClass` | `true` |
| `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.defaultVolumeType` | The default volume type this storage class creates | `local` |
| `storageClass.name` | The name to assign the created StorageClass | local-path |
| `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]}]` |
......
......@@ -5,10 +5,9 @@ metadata:
name: {{ .Values.storageClass.name }}
labels:
{{ include "local-path-provisioner.labels" . | indent 4 }}
{{- if .Values.storageClass.defaultClass }}
annotations:
storageclass.kubernetes.io/is-default-class: "true"
{{- end }}
storageclass.kubernetes.io/is-default-class: "{{ .Values.storageClass.defaultClass }}"
defaultVolumeType: "{{ .Values.storageClass.defaultVolumeType }}"
provisioner: {{ template "local-path-provisioner.provisionerName" . }}
volumeBindingMode: {{ .Values.storageClass.volumeBindingMode }}
reclaimPolicy: {{ .Values.storageClass.reclaimPolicy }}
......
......@@ -34,6 +34,9 @@ storageClass:
## Ignored if storageClass.create is false
defaultClass: false
## The default volume type this storage class creates, can be "local" or "hostPath"
defaultVolumeType: local
## Set a StorageClass name
## Ignored if storageClass.create is false
name: local-path
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment