Skip to content

Commit 23603fd

Browse files
gman0pierreprinetti
authored andcommitted
nodeplugin DaemonSet: removed preStop hook in node-driver-registrar
This was used to remove the registration socket when the container node-driver-registrar container stops. As of [1] it's done by the registrar itself, making this hook not needed anymore. [1] kubernetes-csi/node-driver-registrar#61
1 parent 13766f1 commit 23603fd

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,6 @@ spec:
3333
args:
3434
- "--csi-address=/csi/csi.sock"
3535
- "--kubelet-registration-path=/var/lib/kubelet/plugins/{{ printf "%s.%s" .protocolSelector $.Values.driverName | lower }}/csi.sock"
36-
lifecycle:
37-
preStop:
38-
exec:
39-
command: [
40-
"/bin/sh", "-c",
41-
'rm -rf /registration/{{ printf "%s.%s" .protocolSelector $.Values.driverName | lower }}
42-
/registration/{{ printf "%s.%s" .protocolSelector $.Values.driverName | lower }}-reg.sock'
43-
]
4436
env:
4537
- name: KUBE_NODE_NAME
4638
valueFrom:

0 commit comments

Comments
 (0)