Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 39 of 39 for getvolumename (0.2 sec)

  1. pkg/controller/volume/persistentvolume/framework_test.go

    func (plugin *mockVolumePlugin) Init(host volume.VolumeHost) error {
    	return nil
    }
    
    func (plugin *mockVolumePlugin) GetPluginName() string {
    	return mockPluginName
    }
    
    func (plugin *mockVolumePlugin) GetVolumeName(spec *volume.Spec) (string, error) {
    	return spec.Name(), nil
    }
    
    func (plugin *mockVolumePlugin) CanSupport(spec *volume.Spec) bool {
    	return true
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 09:54:00 UTC 2023
    - 38.3K bytes
    - Viewed (0)
  2. pkg/volume/util/operationexecutor/operation_generator.go

    		}
    
    		volumeName, err =
    			attachableVolumePlugin.GetVolumeName(volumeToDetach.VolumeSpec)
    		if err != nil {
    			return volumetypes.GeneratedOperations{}, volumeToDetach.GenerateErrorDetailed("DetachVolume.GetVolumeName failed", err)
    		}
    	} else {
    		// Get attacher plugin and the volumeName by splitting the volume unique name in case
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 101.4K bytes
    - Viewed (0)
  3. pkg/volume/csi/csi_attacher_test.go

    			_, err := csiAttacher.k8s.StorageV1().VolumeAttachments().Create(context.TODO(), attachment, metav1.CreateOptions{})
    			if err != nil {
    				t.Fatalf("failed to attach: %v", err)
    			}
    			volumeName, err := plug.GetVolumeName(spec)
    			if err != nil {
    				t.Errorf("test case %s failed: %v", tc.name, err)
    			}
    
    			err = csiAttacher.Detach(volumeName, types.NodeName(nodeName))
    			if tc.shouldFail && err == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 58.1K bytes
    - Viewed (0)
  4. pkg/volume/secret/secret_test.go

    	doTestCleanAndTeardown(plugin, testPodUID, testVolumeName, volumePath, t)
    }
    
    func TestPluginOptional(t *testing.T) {
    	var (
    		testPodUID     = types.UID("test_pod_uid")
    		testVolumeName = "test_volume_name"
    		testNamespace  = "test_secret_namespace"
    		testName       = "test_secret_name"
    		trueVal        = true
    
    		volumeSpec    = volumeSpec(testVolumeName, testName, 0644)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 01 15:56:32 UTC 2022
    - 19.5K bytes
    - Viewed (0)
  5. pkg/volume/projected/projected_test.go

    	defer doTestCleanAndTeardown(plugin, testPodUID, testVolumeName, volumePath, t)
    }
    
    func TestInvalidPathProjected(t *testing.T) {
    	var (
    		testPodUID     = types.UID("test_pod_uid")
    		testVolumeName = "test_volume_name"
    		testNamespace  = "test_projected_namespace"
    		testName       = "test_projected_name"
    
    		volumeSpec    = makeVolumeSpec(testVolumeName, testName, 0644)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:48 UTC 2023
    - 40.5K bytes
    - Viewed (0)
  6. cmd/storage-rest_test.go

    	if err != nil {
    		t.Fatalf("unexpected error %v", err)
    	}
    
    	testCases := []struct {
    		volumeName     string
    		objectName     string
    		destVolumeName string
    		destObjectName string
    		expectErr      bool
    	}{
    		{"foo", "myobject", "foo", "yourobject", false},
    		{"foo", "yourobject", "bar", "myobject", false},
    		// overwrite.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  7. CHANGELOG/CHANGELOG-1.6.md

    * Fix the bug where container cannot run as root when SecurityContext.RunAsNonRoot is false. ([#47009](https://github.com/kubernetes/kubernetes/pull/47009), [@yujuhong](https://github.com/yujuhong))
    * Remove broken getvolumename and pass PV or volume name to attach call ([#46249](https://github.com/kubernetes/kubernetes/pull/46249), [@chakri-nelluri](https://github.com/chakri-nelluri))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 24 02:28:26 UTC 2020
    - 304K bytes
    - Viewed (0)
  8. pkg/apis/storage/validation/validation_test.go

    			t.Errorf("expected failure for test: %v", volumeAttachment)
    		}
    	}
    }
    
    func TestVolumeAttachmentUpdateValidation(t *testing.T) {
    	volumeName := "foo"
    	newVolumeName := "bar"
    
    	old := storage.VolumeAttachment{
    		ObjectMeta: metav1.ObjectMeta{Name: "foo"},
    		Spec: storage.VolumeAttachmentSpec{
    			Attacher: "myattacher",
    			Source:   storage.VolumeAttachmentSource{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 69.7K bytes
    - Viewed (0)
  9. src/path/filepath/path_test.go

    	{`//./UNC/host`, `\\.\UNC\host`},
    	{`//./UNC/host\`, `\\.\UNC\host\`},
    	{`//./UNC`, `\\.\UNC`},
    	{`//./UNC/`, `\\.\UNC\`},
    	{`\\?\x`, `\\?\x`},
    	{`\??\x`, `\??\x`},
    }
    
    func TestVolumeName(t *testing.T) {
    	if runtime.GOOS != "windows" {
    		return
    	}
    	for _, v := range volumenametests {
    		if vol := filepath.VolumeName(v.path); vol != v.vol {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:38:19 UTC 2024
    - 47.1K bytes
    - Viewed (0)
Back to top