Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 61 for attachable (0.14 sec)

  1. pkg/controller/volume/attachdetach/populator/desired_state_of_world_populator_test.go

    			volumeExists)
    	}
    
    	// Change the CSI volume plugin attachability
    	fakeVolumePlugin.NonAttachable = true
    
    	dswp.findAndRemoveDeletedPods(logger)
    
    	// The volume should not exist after it becomes non-attachable
    	volumeExists = dswp.desiredStateOfWorld.VolumeExists(expectedVolumeName, k8stypes.NodeName(pod.Spec.NodeName))
    	if volumeExists {
    		t.Fatalf(
    			"VolumeExists(%q) failed. Expected: <false> Actual: <%v>",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 10:42:15 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. pkg/kubelet/volumemanager/cache/actual_state_of_world.go

    	// which volumes should be reported as "in use" in the node's VolumesInUse
    	// status field. Globally mounted here refers to the shared plugin mount
    	// point for the attachable volume from which the pod specific mount points
    	// are created (via bind mount).
    	GetGloballyMountedVolumes() []AttachedVolume
    
    	// GetUnmountedVolumes generates and returns a list of attached volumes that
    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/volume/plugins.go

    	// DevicePath - location of actual device on the node. In case of CSI
    	// this just could be volumeID
    	DevicePath string
    
    	// DeviceMountPath location where device is mounted on the node. If volume type
    	// is attachable - this would be global mount path otherwise
    	// it would be location where volume was mounted for the pod
    	DeviceMountPath string
    
    	// DeviceStagingPath stores location where the volume is staged
    	DeviceStagePath string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 16:13:15 UTC 2024
    - 38.2K bytes
    - Viewed (0)
  4. pkg/volume/util/volumepathhandler/volume_path_handler_linux.go

    func (v VolumePathHandler) GetLoopDevice(path string) (string, error) {
    	_, err := os.Stat(path)
    	if os.IsNotExist(err) {
    		return "", errors.New(ErrDeviceNotFound)
    	}
    	if err != nil {
    		return "", fmt.Errorf("not attachable: %v", err)
    	}
    
    	return getLoopDeviceFromSysfs(path)
    }
    
    func makeLoopDevice(path string) (string, error) {
    	args := []string{"-f", path}
    	cmd := exec.Command(losetupPath, args...)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  5. pkg/kubelet/volumemanager/populator/desired_state_of_world_populator_test.go

    	}
    
    	// change the volume plugin from attachable to non-attachable
    	fakeVolumePlugin.NonAttachable = true
    
    	// The volume should still exist
    	verifyVolumeExistsInVolumesToMount(
    		t, v1.UniqueVolumeName(generatedVolumeName), false /* expectReportedInUse */, fakesDSW)
    
    	dswp.findAndRemoveDeletedPods()
    	// After the volume plugin changes to nonattachable, the corresponding volume attachable field should change.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.4K bytes
    - Viewed (0)
  6. pkg/apis/core/v1/helper/helpers.go

    func IsOvercommitAllowed(name v1.ResourceName) bool {
    	return IsNativeResource(name) &&
    		!IsHugePageResourceName(name)
    }
    
    // IsAttachableVolumeResourceName returns true when the resource name is prefixed in attachable volume
    func IsAttachableVolumeResourceName(name v1.ResourceName) bool {
    	return strings.HasPrefix(string(name), v1.ResourceAttachableVolumesPrefix)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 23:03:54 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  7. pkg/kubelet/volumemanager/reconciler/reconciler_common.go

    				}
    			} else {
    				// Volume is attached to node, detach it
    				// Kubelet not responsible for detaching or this volume has a non-attachable volume plugin.
    				if rc.controllerAttachDetachEnabled || !attachedVolume.PluginIsAttachable {
    					rc.actualStateOfWorld.MarkVolumeAsDetached(attachedVolume.VolumeName, attachedVolume.NodeName)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:23:12 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  8. pkg/controller/volume/attachdetach/cache/actual_state_of_world.go

    	// the volume is not confirmed to be attached to the node yet.
    	// A unique volume name is generated from the volumeSpec and returned on
    	// success.
    	// If volumeSpec is not an attachable volume plugin, an error is returned.
    	// If no volume with the name volumeName exists in the store, the volume is
    	// added.
    	// If no node with the name nodeName exists in list of attached nodes for
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 11 07:35:17 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  9. pkg/volume/volume.go

    type CustomBlockVolumeUnmapper interface {
    	BlockVolumeUnmapper
    	// TearDownDevice removes traces of the SetUpDevice procedure.
    	// If the plugin is non-attachable, this method detaches the volume
    	// from a node.
    	TearDownDevice(mapPath string, devicePath string) error
    
    	// UnmapPodDevice removes traces of the MapPodDevice procedure.
    	UnmapPodDevice() error
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  10. pkg/volume/util/operationexecutor/operation_generator.go

    	}, nil
    }
    
    // GenerateMapVolumeFunc marks volume as mounted based on following steps.
    // If plugin is attachable, call WaitForAttach() and then mark the device
    // as mounted. On next step, SetUpDevice is called without dependent of
    // plugin type, but this method mainly is targeted for none attachable plugin.
    // After setup is done, create symbolic links on both global map path and pod
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 101.4K bytes
    - Viewed (0)
Back to top