Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for attachedVolumes (0.31 sec)

  1. pkg/controller/volume/attachdetach/cache/actual_state_of_world_test.go

    	}
    
    	attachedVolumes := asw.GetAttachedVolumes()
    	if len(attachedVolumes) != 1 {
    		t.Fatalf("len(attachedVolumes) Expected: <1> Actual: <%v>", len(attachedVolumes))
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 11 07:35:17 UTC 2024
    - 66.1K bytes
    - Viewed (0)
  2. pkg/kubelet/volumemanager/cache/actual_state_of_world.go

    	attachedVolume *attachedVolume) AttachedVolume {
    	seLinuxMountContext := ""
    	if utilfeature.DefaultFeatureGate.Enabled(features.SELinuxMountReadWriteOncePod) {
    		if attachedVolume.seLinuxMountContext != nil {
    			seLinuxMountContext = *attachedVolume.seLinuxMountContext
    		}
    	}
    	return AttachedVolume{
    		AttachedVolume: operationexecutor.AttachedVolume{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 07:34:33 UTC 2024
    - 45.8K bytes
    - Viewed (0)
  3. pkg/controller/volume/attachdetach/cache/actual_state_of_world.go

    func (asw *actualStateOfWorld) getAttachedVolume(
    	attachedVolume *attachedVolume,
    	nodeAttachedTo *nodeAttachedTo) AttachedVolume {
    	return AttachedVolume{
    		AttachedVolume: operationexecutor.AttachedVolume{
    			VolumeName:         attachedVolume.volumeName,
    			VolumeSpec:         attachedVolume.spec,
    			NodeName:           nodeAttachedTo.nodeName,
    			DevicePath:         attachedVolume.devicePath,
    			PluginIsAttachable: true,
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 11 07:35:17 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  4. pkg/controller/volume/attachdetach/statusupdater/node_status_updater.go

    	needsUpdate, attachedVolumes := nsu.actualStateOfWorld.GetVolumesToReportAttachedForNode(logger, nodeName)
    	if !needsUpdate {
    		return nil
    	}
    	return nsu.processNodeVolumes(logger, nodeName, attachedVolumes)
    }
    
    func (nsu *nodeStatusUpdater) processNodeVolumes(logger klog.Logger, nodeName types.NodeName, attachedVolumes []v1.AttachedVolume) error {
    	nodeObj, err := nsu.nodeLister.Get(string(nodeName))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 00:37:30 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  5. pkg/volume/util/operationexecutor/operation_executor_test.go

    	t.Parallel()
    
    	// Arrange
    	ch, quit, oe := setup()
    	attachedVolumes := make([]AttachedVolume, numDevicesToUnmount)
    	pdName := "pd-volume"
    
    	// Act
    	for i := range attachedVolumes {
    		attachedVolumes[i] = AttachedVolume{
    			VolumeName: v1.UniqueVolumeName(pdName),
    			NodeName:   "node-name",
    		}
    		oe.UnmountDevice(attachedVolumes[i], nil /* actualStateOfWorldMounterUpdater */, nil /* mount.Interface */)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  6. pkg/kubelet/volume_host.go

    	if err != nil {
    		return nil, fmt.Errorf("error retrieving node: %v", err)
    	}
    	attachedVolumes := node.Status.VolumesAttached
    	result := map[v1.UniqueVolumeName]string{}
    	for i := range attachedVolumes {
    		attachedVolume := attachedVolumes[i]
    		result[attachedVolume.Name] = attachedVolume.DevicePath
    	}
    	return result, nil
    }
    
    func (kvh *kubeletVolumeHost) GetNodeName() types.NodeName {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 11:00:37 UTC 2024
    - 10K bytes
    - Viewed (0)
  7. pkg/kubelet/volumemanager/reconciler/reconciler_test.go

    		Jitter:   0,
    		Steps:    6,
    	}
    	return wait.ExponentialBackoff(backoff, fn)
    }
    
    func createTestClient(attachedVolumes ...v1.AttachedVolume) *fake.Clientset {
    	fakeClient := &fake.Clientset{}
    	if len(attachedVolumes) == 0 {
    		attachedVolumes = append(attachedVolumes, v1.AttachedVolume{
    			Name:       "fake-plugin/fake-device1",
    			DevicePath: "fake/path",
    		})
    	}
    	fakeClient.AddReactor("get", "nodes",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 07:34:33 UTC 2024
    - 75.4K bytes
    - Viewed (0)
  8. pkg/volume/util/operationexecutor/operation_executor.go

    }
    
    func (oe *operationExecutor) VerifyVolumesAreAttached(
    	attachedVolumes map[types.NodeName][]AttachedVolume,
    	actualStateOfWorld ActualStateOfWorldAttacherUpdater) {
    
    	for node, nodeAttachedVolumes := range attachedVolumes {
    		nodeError := oe.VerifyVolumesAreAttachedPerNode(nodeAttachedVolumes, node, actualStateOfWorld)
    		if nodeError != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  9. pkg/volume/util/operationexecutor/fakegenerator.go

    }
    
    func (f *fakeOGCounter) GenerateDetachVolumeFunc(logger klog.Logger, volumeToDetach AttachedVolume, verifySafeToDetach bool, actualStateOfWorld ActualStateOfWorldAttacherUpdater) (volumetypes.GeneratedOperations, error) {
    	return f.recordFuncCall("GenerateDetachVolumeFunc"), nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/nodevolumelimits/csi.go

    	nodeVolumeLimits := getVolumeLimits(nodeInfo, csiNode)
    	if len(nodeVolumeLimits) == 0 {
    		return nil
    	}
    
    	attachedVolumes := make(map[string]string)
    	for _, existingPod := range nodeInfo.Pods {
    		if err := pl.filterAttachableVolumes(logger, existingPod.Pod, csiNode, false /* existing pod */, attachedVolumes); err != nil {
    			return framework.AsStatus(err)
    		}
    	}
    
    	attachedVolumeCount := map[string]int{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 18:07:11 UTC 2024
    - 16.6K bytes
    - Viewed (0)
Back to top