Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 105 for vol7 (0.04 sec)

  1. pkg/volume/csi/csi_test.go

    		findPluginShouldFail bool
    		driverSpec           *storage.CSIDriverSpec
    		watchTimeout         time.Duration
    	}{
    		{
    			name:     "PersistentVolume",
    			specName: "pv2",
    			driver:   "simple-driver",
    			volName:  "vol2",
    			specFunc: func(specName, driver, volName string) *volume.Spec {
    				return volume.NewSpecFromPersistentVolume(makeTestPV(specName, 20, driver, volName), false)
    			},
    			podFunc: func() *api.Pod {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 15:55:13 UTC 2022
    - 21.1K bytes
    - Viewed (0)
  2. pkg/volume/csi/csi_plugin_test.go

    			driverName: "testdr",
    			volName:    "test-vol-name",
    			spec:       volume.NewSpecFromPersistentVolume(makeTestPV("test-pv", 10, "testdr", "test-vol-name"), false),
    		},
    		{
    			name:       "mixchars all",
    			driverName: "test-driver",
    			volName:    "test.vol.name",
    			spec:       volume.NewSpecFromPersistentVolume(makeTestPV("test-pv", 10, "test-driver", "test.vol.name"), false),
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/phases/controlplane/volumes_test.go

    			if _, ok := mounts.volumes["component"][volumeName]; !ok {
    				t.Errorf("Expected to find volume %q", volumeName)
    			}
    			vol := mounts.volumes["component"][volumeName]
    			if vol.Name != volumeName {
    				t.Errorf("Expected volume name %q", volumeName)
    			}
    			if vol.HostPath.Path != hostMount.HostPath {
    				t.Errorf("Expected host path %q", hostMount.HostPath)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 09:33:18 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  4. pkg/volume/flexvolume/common_test.go

    			return false
    		}
    	}
    	return true
    }
    
    func fakeVolumeSpec() *volume.Spec {
    	vol := &v1.Volume{
    		Name: "vol1",
    		VolumeSource: v1.VolumeSource{
    			FlexVolume: &v1.FlexVolumeSource{
    				Driver:   "kubernetes.io/fakeAttacher",
    				ReadOnly: false,
    			},
    		},
    	}
    	return volume.NewSpecFromVolume(vol)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 01 15:56:32 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  5. pkg/volume/iscsi/iscsi_test.go

    	}
    }
    
    func TestPluginVolume(t *testing.T) {
    	vol := &v1.Volume{
    		Name: "vol1",
    		VolumeSource: v1.VolumeSource{
    			ISCSI: &v1.ISCSIVolumeSource{
    				TargetPortal: "127.0.0.1:3260",
    				IQN:          "iqn.2014-12.server:storage.target01",
    				FSType:       "ext4",
    				Lun:          0,
    			},
    		},
    	}
    	doTestPlugin(t, volume.NewSpecFromVolume(vol))
    }
    
    func TestPluginPersistentVolume(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 01 15:56:32 UTC 2022
    - 16.4K bytes
    - Viewed (0)
  6. pkg/controller/volume/attachdetach/attach_detach_controller_test.go

    		{ // pod is scheduled
    			testName:          "Scheduled pod",
    			volName:           "vol1",
    			podName:           "pod1",
    			podNodeName:       "mynode-1",
    			pvName:            "pv1",
    			vaName:            "va1",
    			vaNodeName:        "mynode-1",
    			vaAttachStatus:    false,
    			expected_attaches: map[string][]string{"mynode-1": {"vol1"}},
    			expected_detaches: map[string][]string{},
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 11:00:37 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  7. pkg/volume/csi/csi_mounter_test.go

    			if err != nil {
    				t.Fatal(err)
    			}
    			if vol.DeviceMountPath != devicePath {
    				t.Errorf("DeviceMountPath not sent properly to CSI driver: %s, %s", vol.DeviceMountPath, devicePath)
    			}
    
    			if !reflect.DeepEqual(vol.MountFlags, csiMounter.spec.PersistentVolume.Spec.MountOptions) {
    				t.Errorf("unexpected mount flags passed to driver: %+v", vol.MountFlags)
    			}
    
    			if vol.FSType != tc.fsType {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  8. cmd/xl-storage_test.go

    	if err = xlStorage.MakeVol(context.Background(), "success-vol"); err != nil {
    		t.Fatalf("Unable to create volume, %s", err)
    	}
    
    	// TestXLStorage failure cases.
    	vol := slashpath.Join(path, "nonempty-vol")
    	if err = os.Mkdir(vol, 0o777); err != nil {
    		t.Fatalf("Unable to create directory, %s", err)
    	}
    	if err = os.WriteFile(slashpath.Join(vol, "test-file"), []byte{}, os.ModePerm); err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 11 17:45:28 UTC 2024
    - 66.7K bytes
    - Viewed (0)
  9. cmd/storage-interface.go

    	// Volume operations.
    	MakeVol(ctx context.Context, volume string) (err error)
    	MakeVolBulk(ctx context.Context, volumes ...string) (err error)
    	ListVols(ctx context.Context) (vols []VolInfo, err error)
    	StatVol(ctx context.Context, volume string) (vol VolInfo, err error)
    	DeleteVol(ctx context.Context, volume string, forceDelete bool) (err error)
    
    	// WalkDir will walk a directory on disk and return a metacache stream on wr.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 5K bytes
    - Viewed (0)
  10. pkg/volume/util/operationexecutor/operation_generator_test.go

    			pvc:  getTestPVC("test-vol0", "2G", "2G", "2G", nil),
    			pv:   getTestPV("test-vol0", "2G"),
    
    			expectedResizeStatus: "",
    			resizeCallCount:      0,
    			expectedStatusSize:   resource.MustParse("2G"),
    		},
    		{
    			name:        "pv.spec.cap = pvc.status.cap, resizeStatus='', desiredSize > actualSize",
    			pvc:         getTestPVC("test-vol0", "2G", "2G", "2G", nil),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 16.2K bytes
    - Viewed (0)
Back to top