csi: Fix recursive mount issue for csi plugins
Longhorn
@@ -331,11 +331,6 @@ func NewPluginDeployment(namespace, serviceAccount, nodeDriverRegistrarImage, ma
},
},
VolumeMounts: []v1.VolumeMount{
- {
- Name: "plugin-dir",
- MountPath: GetInContainerPluginsDir(),
- MountPropagation: &MountPropagationBidirectional,
- },
{
Name: "socket-dir",
MountPath: GetInContainerCSISocketDir(),
@@ -445,11 +440,6 @@ func NewPluginDeployment(namespace, serviceAccount, nodeDriverRegistrarImage, ma
},
},
VolumeMounts: []v1.VolumeMount{
- {
- Name: "plugin-dir",
- MountPath: GetInContainerPluginsDir(),
- MountPropagation: &MountPropagationBidirectional,
- },
{
Name: "old-socket-dir",
MountPath: GetOldInContainerCSISocketDir(),
@@ -494,15 +484,6 @@ func NewPluginDeployment(namespace, serviceAccount, nodeDriverRegistrarImage, ma
},
},
},
- {
- Name: "plugin-dir",
- VolumeSource: v1.VolumeSource{
- HostPath: &v1.HostPathVolumeSource{
- Path: GetOnHostPluginsDir(rootDir),
- Type: &HostPathDirectory,
- },
- },
- },
{
Name: "pods-mount-dir",
VolumeSource: v1.VolumeSource{
