Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 61 for attachable (0.18 sec)

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

    	// A unique volumeName is generated from the volumeSpec and returned on
    	// success.
    	// If the pod already exists under the specified volume, this is a no-op.
    	// If volumeSpec is not an attachable volume plugin, an error is returned.
    	// If no volume with the name volumeName exists in the list of volumes that
    	// should be attached to the specified node, the volume is implicitly added.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 10:42:15 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  2. pkg/volume/csi/csi_test.go

    					t.Fatal("csiTest.VolumeAll detacher.Detach failed:", err)
    				}
    				t.Log("csiTest.VolumeAll detacher.Detach succeeded for volume", volName)
    
    			} else {
    				t.Log("csiTest.VolumeAll attachable plugin not found for plugin.Detach call, skipping")
    			}
    		})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 15:55:13 UTC 2022
    - 21.1K bytes
    - Viewed (0)
  3. pkg/volume/local/local_test.go

    		t.Errorf("Deletable plugin found, expected none")
    	}
    
    	attachPlug, err := plugMgr.FindAttachablePluginByName(localVolumePluginName)
    	if err == nil && attachPlug != nil {
    		t.Errorf("Attachable plugin found, expected none")
    	}
    
    	createPlug, err := plugMgr.FindCreatablePluginBySpec(spec)
    	if err == nil && createPlug != nil {
    		t.Errorf("Creatable plugin found, expected none")
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 08 10:53:39 UTC 2023
    - 22.5K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/nodevolumelimits/csi_test.go

    			test:             "don't skip Filter when the pod has inline migratable volumes",
    			wantStatus:       framework.NewStatus(framework.Unschedulable, ErrReasonMaxVolumeCountExceeded),
    		},
    	}
    
    	// running attachable predicate tests with feature gate and limit present on nodes
    	for _, test := range tests {
    		t.Run(test.test, func(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 18:07:11 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  5. pkg/volume/testing/testing.go

    	ProvisionDelaySeconds  int
    	SupportsRemount        bool
    	SupportsSELinux        bool
    	DisableNodeExpansion   bool
    	CanSupportFn           func(*volume.Spec) bool
    
    	// default to false which means it is attachable by default
    	NonAttachable bool
    
    	// Add callbacks as needed
    	WaitForAttachHook func(spec *volume.Spec, devicePath string, pod *v1.Pod, spectimeout time.Duration) (string, error)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  6. pkg/volume/csi/csi_attacher.go

    		skip, err := c.plugin.skipAttach(driverName)
    		if err != nil {
    			klog.Error(log("Failed to check CSIDriver for %s: %s", driverName, err))
    		} else {
    			if skip {
    				// This volume is not attachable, pretend it's attached
    				attached[spec] = true
    				continue
    			}
    		}
    
    		attachID := getAttachmentName(volumeHandle, driverName, string(nodeName))
    		var attach *storage.VolumeAttachment
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 03 07:38:14 UTC 2023
    - 25.9K bytes
    - Viewed (0)
  7. pkg/volume/csi/csi_client_test.go

    }
    
    type VolumeStatsOptions struct {
    	VolumeSpec *volume.Spec
    
    	// this just could be volumeID
    	VolumeID 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
    }
    
    func TestVolumeHealthEnable(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  8. pkg/kubelet/kubelet_node_status.go

    // the API server, returning a boolean indicating whether the attempt was
    // successful.  If a node with the same name already exists, it reconciles the
    // value of the annotation for controller-managed attach-detach of attachable
    // persistent volumes for the node.
    func (kl *Kubelet) tryRegisterWithAPIServer(node *v1.Node) bool {
    	_, err := kl.kubeClient.CoreV1().Nodes().Create(context.TODO(), node, metav1.CreateOptions{})
    	if err == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  9. pkg/volume/util/util.go

    		}
    		return false
    	}
    
    	// we don't know if it's supported or not and let the attacher fail later in cases it's not supported
    	return true
    }
    
    // IsAttachableVolume checks if the given volumeSpec is an attachable volume or not
    func IsAttachableVolume(volumeSpec *volume.Spec, volumePluginMgr *volume.VolumePluginMgr) bool {
    	attachableVolumePlugin, _ := volumePluginMgr.FindAttachablePluginBySpec(volumeSpec)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  10. pkg/kubelet/volumemanager/reconciler/reconciler_test.go

    		oex,
    		mount.NewFakeMounter(nil),
    		hostutil.NewFakeHostUtil(nil),
    		volumePluginMgr,
    		kubeletPodsDir)
    	reconciler := rc.(*reconciler)
    
    	// The pod has two volumes, fake-device1 is attachable, fake-device2 is not.
    	pod := &v1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name: "pod1",
    			UID:  "pod1uid",
    		},
    		Spec: v1.PodSpec{
    			Volumes: []v1.Volume{
    				{
    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