Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for GetVolumesInUse (0.29 sec)

  1. pkg/kubelet/volumemanager/volume_manager_fake.go

    }
    
    // GetExtraSupplementalGroupsForPod is not implemented
    func (f *FakeVolumeManager) GetExtraSupplementalGroupsForPod(pod *v1.Pod) []int64 {
    	return nil
    }
    
    // GetVolumesInUse returns a list of the initial volumes
    func (f *FakeVolumeManager) GetVolumesInUse() []v1.UniqueVolumeName {
    	inuse := []v1.UniqueVolumeName{}
    	for v := range f.volumes {
    		inuse = append(inuse, v)
    	}
    	return inuse
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 17 16:53:28 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  2. pkg/kubelet/volumemanager/volume_manager.go

    	// supplemental groups for the Pod. These extra supplemental groups come
    	// from annotations on persistent volumes that the pod depends on.
    	GetExtraSupplementalGroupsForPod(pod *v1.Pod) []int64
    
    	// GetVolumesInUse returns a list of all volumes that implement the volume.Attacher
    	// interface and are currently in use according to the actual and desired
    	// state of the world caches. A volume is considered "in use" as soon as it
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  3. pkg/kubelet/volumemanager/volume_manager_test.go

    			}
    
    			expectedInUse := []v1.UniqueVolumeName{}
    			if test.expectMount {
    				expectedInUse = []v1.UniqueVolumeName{v1.UniqueVolumeName(node.Status.VolumesAttached[0].Name)}
    			}
    			actualInUse := manager.GetVolumesInUse()
    			if !reflect.DeepEqual(expectedInUse, actualInUse) {
    				t.Errorf("Expected %v to be in use but got %v", expectedInUse, actualInUse)
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  4. pkg/kubelet/nodestatus/setters.go

    func VolumesInUse(syncedFunc func() bool, // typically Kubelet.volumeManager.ReconcilerStatesHasBeenSynced
    	volumesInUseFunc func() []v1.UniqueVolumeName, // typically Kubelet.volumeManager.GetVolumesInUse
    ) Setter {
    	return func(ctx context.Context, node *v1.Node) error {
    		// Make sure to only update node status after reconciler starts syncing up states
    		if syncedFunc() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 12:12:04 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  5. pkg/kubelet/kubelet_node_status.go

    			kl.containerManager.Status, kl.shutdownManager.ShutdownStatus, kl.recordNodeStatusEvent, kl.supportLocalStorageCapacityIsolation()),
    		nodestatus.VolumesInUse(kl.volumeManager.ReconcilerStatesHasBeenSynced, kl.volumeManager.GetVolumesInUse),
    		// TODO(mtaufen): I decided not to move this setter for now, since all it does is send an event
    		// and record state back to the Kubelet runtime object. In the future, I'd like to isolate
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  6. pkg/kubelet/kubelet_node_status_test.go

    			// Only test VolumesInUse setter
    			kubelet.setNodeStatusFuncs = []func(context.Context, *v1.Node) error{
    				nodestatus.VolumesInUse(kubelet.volumeManager.ReconcilerStatesHasBeenSynced,
    					kubelet.volumeManager.GetVolumesInUse),
    			}
    
    			kubeClient := testKubelet.fakeKubeClient
    			kubeClient.ReactionChain = fake.NewSimpleClientset(&v1.NodeList{Items: []v1.Node{*tc.existingNode}}).ReactionChain
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 19:23:19 UTC 2024
    - 115.8K bytes
    - Viewed (0)
Back to top