From 0056e58ba63fd4b253d09f8defafe62ba6983629 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Thu, 10 Oct 2019 10:52:27 +0530 Subject: [PATCH] csi: update cephfs registration directory name when multiple CSI drivers are running in a cluster, each should use unique socket for registration. Signed-off-by: Madhu Rajanna --- .../kubernetes/ceph/csi/template/cephfs/csi-cephfsplugin.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster/examples/kubernetes/ceph/csi/template/cephfs/csi-cephfsplugin.yaml b/cluster/examples/kubernetes/ceph/csi/template/cephfs/csi-cephfsplugin.yaml index 10b609898..114ed0d58 100644 --- a/cluster/examples/kubernetes/ceph/csi/template/cephfs/csi-cephfsplugin.yaml +++ b/cluster/examples/kubernetes/ceph/csi/template/cephfs/csi-cephfsplugin.yaml @@ -28,7 +28,7 @@ spec: lifecycle: preStop: exec: - command: ["/bin/sh", "-c", "rm -rf /registration/csi-cephfsplugin /registration/csi-cephfsplugin-reg.sock"] + command: ["/bin/sh", "-c", "rm -rf /registration/{{ .DriverNamePrefix }}cephfs.csi.ceph.com /registration/{{ .DriverNamePrefix }}cephfs.csi.ceph.com-reg.sock"] env: - name: KUBE_NODE_NAME valueFrom: