Rename updateReconstructedFromAPIServer

to be in sync with volumesNeedUpdateFromNodeStatus.
This commit is contained in:
Jan Safranek 2023-07-11 11:25:41 +02:00
parent 1903f5aa2a
commit 354b6c409f
2 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@ func (rc *reconciler) reconcileNew() {
} }
if len(rc.volumesNeedUpdateFromNodeStatus) != 0 { if len(rc.volumesNeedUpdateFromNodeStatus) != 0 {
rc.updateReconstructedFromAPIServer() rc.updateReconstructedFromNodeStatus()
} }
if len(rc.volumesNeedUpdateFromNodeStatus) == 0 { if len(rc.volumesNeedUpdateFromNodeStatus) == 0 {
// ASW is fully populated only after both devicePaths and uncertain volume attach-ability // ASW is fully populated only after both devicePaths and uncertain volume attach-ability

View File

@ -173,10 +173,10 @@ func (rc *reconciler) cleanOrphanVolumes() {
rc.volumesFailedReconstruction = make([]podVolume, 0) rc.volumesFailedReconstruction = make([]podVolume, 0)
} }
// updateReconstructedFromAPIServer tries to file devicePaths of reconstructed volumes from // updateReconstructedFromNodeStatus tries to file devicePaths of reconstructed volumes from
// node.Status.VolumesAttached. This can be done only after connection to the API // node.Status.VolumesAttached. This can be done only after connection to the API
// server is established, i.e. it can't be part of reconstructVolumes(). // server is established, i.e. it can't be part of reconstructVolumes().
func (rc *reconciler) updateReconstructedFromAPIServer() { func (rc *reconciler) updateReconstructedFromNodeStatus() {
klog.V(4).InfoS("Updating reconstructed devicePaths") klog.V(4).InfoS("Updating reconstructed devicePaths")
if rc.kubeClient == nil { if rc.kubeClient == nil {