Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for StatesHasBeenSynced (0.2 sec)

  1. pkg/kubelet/volumemanager/reconciler/reconciler_common.go

    	// be detached are detached and trigger attach/detach operations as needed.
    	Run(stopCh <-chan struct{})
    
    	// StatesHasBeenSynced returns true only after syncStates process starts to sync
    	// states at least once after kubelet starts
    	StatesHasBeenSynced() bool
    }
    
    // NewReconciler returns a new instance of Reconciler.
    //
    // controllerAttachDetachEnabled - if true, indicates that the attach/detach
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:23:12 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  2. pkg/kubelet/volumemanager/reconciler/reconstruct_common.go

    	}
    }
    
    func (rc *reconciler) updateLastSyncTime() {
    	rc.timeOfLastSyncLock.Lock()
    	defer rc.timeOfLastSyncLock.Unlock()
    	rc.timeOfLastSync = time.Now()
    }
    
    func (rc *reconciler) StatesHasBeenSynced() bool {
    	rc.timeOfLastSyncLock.Lock()
    	defer rc.timeOfLastSyncLock.Unlock()
    	return !rc.timeOfLastSync.IsZero()
    }
    
    func (gvi *globalVolumeInfo) addPodVolume(rcv *reconstructedVolume) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 07:34:33 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  3. pkg/kubelet/volumemanager/volume_manager.go

    		return string(volumesToReportInUse[i]) < string(volumesToReportInUse[j])
    	})
    	return volumesToReportInUse
    }
    
    func (vm *volumeManager) ReconcilerStatesHasBeenSynced() bool {
    	return vm.reconciler.StatesHasBeenSynced()
    }
    
    func (vm *volumeManager) VolumeIsAttached(
    	volumeName v1.UniqueVolumeName) bool {
    	return vm.actualStateOfWorld.VolumeExists(volumeName)
    }
    
    func (vm *volumeManager) MarkVolumesAsReportedInUse(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  4. pkg/kubelet/volumemanager/reconciler/reconciler_test.go

    	assert.NoError(t, asw.MarkDeviceAsUncertain(volumeName2, "/dev/reconstructed", "/var/lib/kubelet/plugins/global2", ""))
    
    	assert.False(t, reconciler.StatesHasBeenSynced())
    
    	reconciler.volumesNeedUpdateFromNodeStatus = append(reconciler.volumesNeedUpdateFromNodeStatus, volumeName1, volumeName2)
    	// Act - run reconcile loop just once.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 07:34:33 UTC 2024
    - 75.4K bytes
    - Viewed (0)
Back to top