Node status updater now deletes the node entry in attach updates when node is missing in NodeInformer cache. Fixes #42438.

- Added RemoveNodeFromAttachUpdates as part of node status updater operations.
This commit is contained in:
Cheng Xing
2017-05-16 11:18:21 -07:00
parent ee0de5f376
commit f9dc2d5ca3
5 changed files with 115 additions and 7 deletions

View File

@@ -160,11 +160,11 @@ type ActualStateOfWorldAttacherUpdater interface {
MarkVolumeAsDetached(volumeName v1.UniqueVolumeName, nodeName types.NodeName)
// Marks desire to detach the specified volume (remove the volume from the node's
// volumesToReportedAsAttached list)
// volumesToReportAsAttached list)
RemoveVolumeFromReportAsAttached(volumeName v1.UniqueVolumeName, nodeName types.NodeName) error
// Unmarks the desire to detach for the specified volume (add the volume back to
// the node's volumesToReportedAsAttached list)
// the node's volumesToReportAsAttached list)
AddVolumeToReportAsAttached(volumeName v1.UniqueVolumeName, nodeName types.NodeName)
}