clarify deprecation comment
This commit is contained in:
parent
75a7966414
commit
260426bf44
@ -365,9 +365,11 @@ func (c *csiMountMgr) TearDownAt(dir string) error {
|
|||||||
return errors.New(log("mounter.TearDownAt failed: %v", err))
|
return errors.New(log("mounter.TearDownAt failed: %v", err))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecation: Removal of this mount directory MUST be done by
|
// Deprecation: Removal of target_path provided in the NodePublish RPC call
|
||||||
// the CSI plugin according to the spec. This will no longer be done
|
// (in this case location `dir`) MUST be done by the CSI plugin according
|
||||||
// directly as part of TearDown by the kubelet in the future.
|
// to the spec. This will no longer be done directly as part of TearDown
|
||||||
|
// by the kubelet in the future. Kubelet will only be responsible for
|
||||||
|
// removal of json data files it creates and parent directories.
|
||||||
if err := removeMountDir(c.plugin, dir); err != nil {
|
if err := removeMountDir(c.plugin, dir); err != nil {
|
||||||
return errors.New(log("mounter.TearDownAt failed to clean mount dir [%s]: %v", dir, err))
|
return errors.New(log("mounter.TearDownAt failed to clean mount dir [%s]: %v", dir, err))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user