mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 02:33:34 +00:00
rbd: healer detect Kubernetes version for right StagingTargetPath
Kubernetes 1.24 and newer use a different path for staging the volume. That means the CSI-driver is requested to mount the volume at an other location, compared to previous versions of Kubernetes. CSI-drivers implementing the volumeHealer, must receive the correct path, otherwise the after a nodeplugin restart the NBD mounts will bailout attempting to NodeStageVolume() call and return an error. See-also: kubernetes/kubernetes#107065 Fixes: #3176 Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
This commit is contained in:
committed by
mergify[bot]
parent
05ccb31a45
commit
1da446d2f2
@ -54,7 +54,7 @@ const (
|
||||
defaultNS = "default"
|
||||
|
||||
defaultPluginPath = "/var/lib/kubelet/plugins"
|
||||
defaultStagingPath = defaultPluginPath + "/kubernetes.io/csi/pv/"
|
||||
defaultStagingPath = defaultPluginPath + "/kubernetes.io/csi/"
|
||||
)
|
||||
|
||||
var conf util.Config
|
||||
|
Reference in New Issue
Block a user