Rename updateReconstructedFromAPIServer
to be in sync with volumesNeedUpdateFromNodeStatus.
This commit is contained in:
		| @@ -57,7 +57,7 @@ func (rc *reconciler) reconcileNew() { | ||||
| 	} | ||||
|  | ||||
| 	if len(rc.volumesNeedUpdateFromNodeStatus) != 0 { | ||||
| 		rc.updateReconstructedFromAPIServer() | ||||
| 		rc.updateReconstructedFromNodeStatus() | ||||
| 	} | ||||
| 	if len(rc.volumesNeedUpdateFromNodeStatus) == 0 { | ||||
| 		// ASW is fully populated only after both devicePaths and uncertain volume attach-ability | ||||
|   | ||||
| @@ -173,10 +173,10 @@ func (rc *reconciler) cleanOrphanVolumes() { | ||||
| 	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 | ||||
| // 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") | ||||
|  | ||||
| 	if rc.kubeClient == nil { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jan Safranek
					Jan Safranek