Refactor volume attach code

This commit is contained in:
Hemant Kumar
2022-02-21 16:07:50 -05:00
parent 6eea80ec97
commit 10f91a9951
4 changed files with 115 additions and 71 deletions

View File

@@ -245,6 +245,9 @@ type ActualStateOfWorldAttacherUpdater interface {
// Unmarks the desire to detach for the specified volume (add the volume back to
// the node's volumesToReportAsAttached list)
AddVolumeToReportAsAttached(volumeName v1.UniqueVolumeName, nodeName types.NodeName)
// SetVolumeClaimSize sets pvc claim size by reading pvc.Status.Capacity
SetVolumeClaimSize(volumeName v1.UniqueVolumeName, claimSize resource.Quantity)
}
// VolumeLogger defines a set of operations for generating volume-related logging and error msgs