Skip to content

Commit b2d6dab

Browse files
authored
[cinder-csi-plugin] Allow overridng kubelet dir in chart values (kubernetes#1615)
The chart assumes Kubelet uses /var/lib/kubelet, which isn't the case on k0s and microk8s (and presumably others). This allows it to be overridden in the values file to handle these cases. Also bump chart version to 1.4.7
1 parent 9b8de65 commit b2d6dab

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

charts/cinder-csi-plugin/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v1
22
appVersion: latest
33
description: Cinder CSI Chart for OpenStack
44
name: openstack-cinder-csi
5-
version: 1.4.6
5+
version: 1.4.7
66
home: https://github.com/kubernetes/cloud-provider-openstack
77
icon: https://github.com/kubernetes/kubernetes/blob/master/logo/logo.png
88
maintainers:

charts/cinder-csi-plugin/templates/nodeplugin-daemonset.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ spec:
3030
- name: ADDRESS
3131
value: /csi/csi.sock
3232
- name: DRIVER_REG_SOCK_PATH
33-
value: /var/lib/kubelet/plugins/cinder.csi.openstack.org/csi.sock
33+
value: {{ .Values.csi.nodePlugin.kubeletDir }}/plugins/cinder.csi.openstack.org/csi.sock
3434
- name: KUBE_NODE_NAME
3535
valueFrom:
3636
fieldRef:
@@ -84,7 +84,7 @@ spec:
8484
- name: socket-dir
8585
mountPath: /csi
8686
- name: kubelet-dir
87-
mountPath: /var/lib/kubelet
87+
mountPath: {{ .Values.csi.nodePlugin.kubeletDir }}
8888
mountPropagation: "Bidirectional"
8989
- name: pods-probe-dir
9090
mountPath: /dev
@@ -94,15 +94,15 @@ spec:
9494
volumes:
9595
- name: socket-dir
9696
hostPath:
97-
path: /var/lib/kubelet/plugins/cinder.csi.openstack.org
97+
path: {{ .Values.csi.nodePlugin.kubeletDir }}/plugins/cinder.csi.openstack.org
9898
type: DirectoryOrCreate
9999
- name: registration-dir
100100
hostPath:
101-
path: /var/lib/kubelet/plugins_registry/
101+
path: {{ .Values.csi.nodePlugin.kubeletDir }}/plugins_registry/
102102
type: Directory
103103
- name: kubelet-dir
104104
hostPath:
105-
path: /var/lib/kubelet
105+
path: {{ .Values.csi.nodePlugin.kubeletDir }}
106106
type: Directory
107107
# - name: pods-cloud-data
108108
# hostPath:

charts/cinder-csi-plugin/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ csi:
6565
nodeSelector: {}
6666
tolerations:
6767
- operator: Exists
68+
kubeletDir: /var/lib/kubelet
6869
controllerPlugin:
6970
affinity: {}
7071
nodeSelector: {}

0 commit comments

Comments
 (0)