Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for pv01 (0.04 sec)

  1. pkg/volume/csi/csi_attacher_test.go

    			spec:       volume.NewSpecFromPersistentVolume(makeTestPV("pv01", 10, "testdriver-01", "testvol-01"), false),
    		},
    		{
    			name:       "test ok 2",
    			nodeName:   "node02",
    			driverName: "driver02",
    			volumeName: "vol02",
    			attachID:   getAttachmentName("vol02", "driver02", "node02"),
    			spec:       volume.NewSpecFromPersistentVolume(makeTestPV("pv01", 10, "driver02", "vol02"), false),
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 58.1K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/volumebinding/assume_cache_test.go

    			newPVC:        makeClaim("pvc1", "5", "ns1"),
    			shouldSucceed: false,
    		},
    		"fail-new-lower-version": {
    			oldPVC:        makeClaim("pvc1", "5", "ns1"),
    			newPVC:        makeClaim("pvc1", "4", "ns1"),
    			shouldSucceed: false,
    		},
    		"fail-new-bad-version": {
    			oldPVC:        makeClaim("pvc1", "5", "ns1"),
    			newPVC:        makeClaim("pvc1", "a", "ns1"),
    			shouldSucceed: false,
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 09:46:58 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  3. pkg/scheduler/util/assumecache/assume_cache_test.go

    			oldObj:    makeObj("pvc1", "5", ""),
    			newObj:    makeObj("pvc1", "4", ""),
    			expectErr: cmpopts.AnyError,
    		},
    		"fail-new-bad-version": {
    			oldObj:    makeObj("pvc1", "5", ""),
    			newObj:    makeObj("pvc1", "a", ""),
    			expectErr: cmpopts.AnyError,
    		},
    		"fail-old-bad-version": {
    			oldObj:    makeObj("pvc1", "a", ""),
    			newObj:    makeObj("pvc1", "5", ""),
    			expectErr: cmpopts.AnyError,
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 09:46:58 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  4. pkg/volume/util/resize_util_test.go

    			}
    		})
    	}
    
    }
    
    func TestCreatePVCPatch(t *testing.T) {
    	pvc1 := makePVC([]v1.PersistentVolumeClaimCondition{
    		{
    			Type:               v1.PersistentVolumeClaimFileSystemResizePending,
    			Status:             v1.ConditionTrue,
    			LastTransitionTime: metav1.Now(),
    		},
    	}).get()
    	pvc1.SetResourceVersion("10")
    	pvc2 := pvc1.DeepCopy()
    	pvc2.Status.Capacity = v1.ResourceList{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  5. pkg/apis/core/v1/defaults_test.go

    		}
    		obj1 := roundTrip(t, runtime.Object(pvc))
    		pvc1 := obj1.(*v1.PersistentVolumeClaim)
    		if pvc1.Status.Phase != v1.ClaimPending {
    			t.Errorf("Expected claim phase %v, got %v", v1.ClaimPending, pvc1.Status.Phase)
    		}
    		if *pvc1.Spec.VolumeMode != test.expectedVolumeMode {
    			t.Errorf("Test %s failed, Expected VolumeMode: %v, but got %v", test.name, test.volumeMode, *pvc1.Spec.VolumeMode)
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 84.4K bytes
    - Viewed (0)
  6. pkg/controller/volume/attachdetach/attach_detach_controller_test.go

    	for _, tc := range []vaTest{
    		{ // 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. plugin/pkg/auth/authorizer/node/node_authorizer_test.go

    			expect: authorizer.DecisionAllow,
    		},
    		{
    			name:   "allowed shared secret via pvc",
    			attrs:  authorizer.AttributesRecord{User: node0, ResourceRequest: true, Verb: "get", Resource: "secrets", Name: "secret-pv0-pod0-node0-ns0", Namespace: "ns0"},
    			expect: authorizer.DecisionAllow,
    		},
    		{
    			name:   "allowed pvc",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  8. pkg/volume/csi/csi_mounter_test.go

    			mode:            storage.VolumeLifecycleEphemeral,
    			fsType:          "ext4",
    			setupShouldFail: true,
    			spec: func(fsType string, options []string) *volume.Spec {
    				volSrc := makeTestVol("pv1", testDriver)
    				volSrc.CSI.FSType = &fsType
    				return volume.NewSpecFromVolume(volSrc)
    			},
    		},
    		{
    			name:   "setup with persistent source",
    			podUID: types.UID(fmt.Sprintf("%08X", rand.Uint64())),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  9. pkg/volume/csi/csi_plugin_test.go

    				Volume:           makeTestVol("test-vol1", testDriver),
    				PersistentVolume: makeTestPV("test-pv1", 20, testDriver, testVol),
    				ReadOnly:         true,
    			},
    			shouldFail: true,
    		},
    		{
    			name:                "mounter with persistent volume source",
    			spec:                volume.NewSpecFromPersistentVolume(makeTestPV("test-pv1", 20, testDriver, testVol), true),
    			podUID:              types.UID(fmt.Sprintf("%08X", rand.Uint64())),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  10. pkg/kubelet/volumemanager/reconciler/reconstruct_test.go

    			mountPaths := []string{vp}
    			os.MkdirAll(vp, 0755)
    
    			// Arrange 2 - populate DSW
    			outerName := filepath.Base(tc.volumePath)
    			pod, pv, pvc := getPodPVCAndPV(tc.volumeMode, "pod1", outerName, "pvc1")
    			volumeSpec := &volume.Spec{PersistentVolume: pv}
    			kubeClient := createtestClientWithPVPVC(pv, pvc, v1.AttachedVolume{
    				Name:       v1.UniqueVolumeName(fmt.Sprintf("fake-plugin/%s", outerName)),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.8K bytes
    - Viewed (0)
Back to top