mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 04:06:03 +00:00
Deprecate removal of CSI nodepublish path by kubelet (#101332)
This commit is contained in:
parent
2115852220
commit
e92dc8d9be
@ -426,6 +426,9 @@ func removeMountDir(plug *csiPlugin, mountPath string) error {
|
||||
}
|
||||
if !mnt {
|
||||
klog.V(4).Info(log("dir not mounted, deleting it [%s]", mountPath))
|
||||
// Deprecation: Removal of this mountPath directory MUST be done by
|
||||
// the CSI plugin according to the spec. This will no longer be done
|
||||
// directly as part of TearDown by the kubelet in the future.
|
||||
if err := os.Remove(mountPath); err != nil && !os.IsNotExist(err) {
|
||||
return errors.New(log("failed to remove dir [%s]: %v", mountPath, err))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user