File tree Expand file tree Collapse file tree 5 files changed +15
-18
lines changed
Expand file tree Collapse file tree 5 files changed +15
-18
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ The following table lists the configurable parameters of the OpenEBS ZFS Localpv
6969| ` zfsPlugin.image.registry ` | Registry for openebs-zfs-plugin image| ` "" ` |
7070| ` zfsPlugin.image.repository ` | Image repository for openebs-zfs-plugin| ` openebs/zfs-driver ` |
7171| ` zfsPlugin.image.pullPolicy ` | Image pull policy for openebs-zfs-plugin| ` IfNotPresent ` |
72- | ` zfsPlugin.image.tag ` | Image tag for openebs-zfs-plugin| ` 2.6.1-prerelease ` |
72+ | ` zfsPlugin.image.tag ` | Image tag for openebs-zfs-plugin| ` 2.6.2 ` |
7373| ` zfsNode.allowedTopologyKeys ` | Custom topology keys required for provisioning| ` "kubernetes.io/hostname," ` |
7474| ` zfsNode.driverRegistrar.image.registry ` | Registry for csi-node-driver-registrar image| ` registry.k8s.io/ ` |
7575| ` zfsNode.driverRegistrar.image.repository ` | Image repository for csi-node-driver-registrar| ` sig-storage/csi-node-driver-registrar ` |
Original file line number Diff line number Diff line change @@ -16,4 +16,4 @@ helm.sh/resource-policy: keep
1616{ {- with .annotations } }
1717 { {- toYaml . } }
1818{ {- end } }
19- { {- end -} }
19+ { {- end -} }
Original file line number Diff line number Diff line change @@ -151,4 +151,11 @@ Enable zfsController containers leader election if replicas > 1
151151- "--leader-election"
152152{ {- end } }
153153{ {- end } }
154- { {- end } }
154+ { {- end } }
155+
156+ { {/*
157+ Ensure that the path to kubelet ends with a slash
158+ */} }
159+ { {- define " zfslocalpv.zfsNode.kubeletDir" -} }
160+ { {- printf " %s/" (.Values.zfsNode.kubeletDir | trimSuffix " /" ) -} }
161+ { {- end } }
Original file line number Diff line number Diff line change 2424 {{ toYaml . | nindent 8 }}
2525 {{- end}}
2626 spec :
27- affinity :
28- podAntiAffinity :
29- requiredDuringSchedulingIgnoredDuringExecution :
30- - labelSelector :
31- matchExpressions :
32- - key : app
33- operator : In
34- values :
35- - openebs-zfs-controller
36- topologyKey : " kubernetes.io/hostname"
3727{{- if .Values.zfsController.priorityClass.create }}
3828 priorityClassName : {{ template "zfslocalpv.zfsController.priorityClassName" . }}
3929{{- end }}
Original file line number Diff line number Diff line change 5555 - name : ADDRESS
5656 value : /plugin/csi.sock
5757 - name : DRIVER_REG_SOCK_PATH
58- value : {{ .Values. zfsNode.kubeletDir }} plugins/zfs-localpv/csi.sock
58+ value : {{ printf "%s%s" (include "zfslocalpv. zfsNode.kubeletDir" .) " plugins/zfs-localpv/csi.sock" | quote }}
5959 - name : KUBE_NODE_NAME
6060 valueFrom :
6161 fieldRef :
@@ -107,7 +107,7 @@ spec:
107107 mountPropagation : " HostToContainer"
108108 readOnly : true
109109 - name : pods-mount-dir
110- mountPath : {{ .Values. zfsNode.kubeletDir }}
110+ mountPath : {{ include "zfslocalpv. zfsNode.kubeletDir" . | quote }}
111111 # needed so that any mounts setup inside this container are
112112 # propagated back to the host machine.
113113 mountPropagation : " Bidirectional"
@@ -130,15 +130,15 @@ spec:
130130 type : Directory
131131 - name : registration-dir
132132 hostPath :
133- path : {{ .Values. zfsNode.kubeletDir }} plugins_registry/
133+ path : {{ printf "%s%s" (include "zfslocalpv. zfsNode.kubeletDir" .) " plugins_registry/" | quote }}
134134 type : DirectoryOrCreate
135135 - name : plugin-dir
136136 hostPath :
137- path : {{ .Values. zfsNode.kubeletDir }} plugins/zfs-localpv/
137+ path : {{ printf "%s%s" (include "zfslocalpv. zfsNode.kubeletDir" .) " plugins/zfs-localpv/" | quote }}
138138 type : DirectoryOrCreate
139139 - name : pods-mount-dir
140140 hostPath :
141- path : {{ .Values. zfsNode.kubeletDir }}
141+ path : {{ include "zfslocalpv. zfsNode.kubeletDir" . | quote }}
142142 type : Directory
143143{{- if .Values.zfsNode.additionalVolumes }}
144144{{- range $name, $config := .Values.zfsNode.additionalVolumes }}
You can’t perform that action at this time.
0 commit comments