Skip to content
Snippets Groups Projects
Commit 056e3580 authored by Alban Bedel's avatar Alban Bedel Committed by Derek Su
Browse files

deployment: Add support for the storage class path pattern to the chart


Add the `pathPattern` parameter to the storage class values so it can
also be configured from the helm chart.

Signed-off-by: default avatarAlban Bedel <alban.bedel@aerq.com>
parent af85381f
No related branches found
No related tags found
No related merge requests found
......@@ -65,6 +65,7 @@ default values.
| `storageClass.defaultVolumeType` | The default volume type this storage class creates | `hostPath` |
| `storageClass.name` | The name to assign the created StorageClass | local-path |
| `storageClass.reclaimPolicy` | ReclaimPolicy field of the class | Delete |
| `storageClass.pathPattern` | Template for the volume directory name | `nil` |
| `nodePathMap` | Configuration of where to store the data on each node | `[{node: DEFAULT_PATH_FOR_NON_LISTED_NODES, paths: [/opt/local-path-provisioner]}]` |
| `resources` | Local Path Provisioner resource requests & limits | `{}` |
| `rbac.create` | If true, create & use RBAC resources | `true` |
......
......@@ -20,6 +20,10 @@ provisioner: {{ template "local-path-provisioner.provisionerName" $dot }}
volumeBindingMode: {{ $values.storageClass.volumeBindingMode }}
reclaimPolicy: {{ $values.storageClass.reclaimPolicy }}
allowVolumeExpansion: true
{{- if .Values.storageClass.pathPattern }}
parameters:
pathPattern: {{ .Values.storageClass.pathPattern | quote }}
{{ end -}}
{{- end }}
---
{{- end }}
......@@ -48,6 +48,9 @@ storageClass:
## volumeBindingMode field controls when volume binding and dynamic provisioning should occur, can be "Immediate" or "WaitForFirstConsumer"
volumeBindingMode: WaitForFirstConsumer
## Set a path pattern, if unset the default will be used
# pathPattern: "{{ .PVC.Namespace }}-{{ .PVC.Name }}"
# nodePathMap is the place user can customize where to store the data on each node.
# 1. If one node is not listed on the nodePathMap, and Kubernetes wants to create volume on it, the paths specified in
# DEFAULT_PATH_FOR_NON_LISTED_NODES will be used for provisioning.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment