Skip to content

Commit

Permalink
make kubelet path configurable from helm values
Browse files Browse the repository at this point in the history
  • Loading branch information
Manohar Reddy committed Sep 7, 2020
1 parent ac86adb commit 37b04dc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion charts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ $ helm search repo -l csi-driver-smb/
```

### Install a specific version of Helm chart
Specify the version of the chart to be installed using the `--version` parameter.
Specify the version of the chart to be installed using the `--version` parameter.
```console
helm install --name csi-driver-smb csi-driver-smb/csi-driver-smb --namespace kube-system --version v0.3.0
```
Expand Down Expand Up @@ -70,6 +70,7 @@ The following table lists the configurable parameters of the latest SMB CSI Driv
| `windows.image.nodeDriverRegistrar.repository` | windows csi-node-driver-registrar docker image | mcr.microsoft.com/oss/kubernetes-csi/csi-node-driver-registrar |
| `windows.image.nodeDriverRegistrar.tag` | windows csi-node-driver-registrar docker image tag | v1.2.1-alpha.1-windows-1809-amd64 |
| `windows.image.nodeDriverRegistrar.pullPolicy` | windows csi-node-driver-registrar image pull policy | IfNotPresent |
| `kubelet.path` | configure the kubelet path | `/var/lib/kubelet` |

## Troubleshooting

Expand Down
6 changes: 3 additions & 3 deletions charts/latest/csi-driver-smb/templates/csi-smb-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,15 @@ spec:
memory: 20Mi
volumes:
- hostPath:
path: /var/lib/kubelet/plugins/smb.csi.k8s.io
path: {{ .Values.kubelet.path }}/plugins/smb.csi.k8s.io
type: DirectoryOrCreate
name: socket-dir
- hostPath:
path: /var/lib/kubelet/
path: {{ .Values.kubelet.path }}/
type: DirectoryOrCreate
name: mountpoint-dir
- hostPath:
path: /var/lib/kubelet/plugins_registry/
path: {{ .Values.kubelet.path }}/plugins_registry/
type: DirectoryOrCreate
name: registration-dir
{{- end -}}
3 changes: 3 additions & 0 deletions charts/latest/csi-driver-smb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,6 @@ windows:
repository: mcr.microsoft.com/oss/kubernetes-csi/csi-node-driver-registrar
tag: v1.2.1-alpha.1-windows-1809-amd64
pullPolicy: IfNotPresent

kubelet:
path: /var/lib/kubelet

0 comments on commit 37b04dc

Please sign in to comment.