mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 10:43:56 +00:00
Rename updateReconstructedFromAPIServer
to be in sync with volumesNeedUpdateFromNodeStatus.
This commit is contained in:
parent
1903f5aa2a
commit
354b6c409f
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user