Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 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/controller/volume/protectionutil/utils_test.go

    import (
    	"testing"
    
    	"k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/kubernetes/pkg/volume/util"
    )
    
    const (
    	defaultNS      = "default"
    	defaultPVCName = "pvc1"
    	defaultPVName  = "pv1"
    )
    
    type TestCase struct {
    	name      string
    	obj       metav1.Object
    	finalizer string
    	result    bool
    }
    
    func pvc() *v1.PersistentVolumeClaim {
    	return &v1.PersistentVolumeClaim{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Mar 17 14:24:42 UTC 2019
    - 5.8K bytes
    - Viewed (0)
  4. 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)
  5. pkg/controller/volume/persistentvolume/index_test.go

    	}
    
    	pv1 := testVolume("pv1", "1Gi")
    	pv5 := testVolume("pv5", "5Gi")
    	pv8 := testVolume("pv8", "8Gi")
    	pvBadSize := testVolume("pvBadSize", "1Mi")
    	pvBadMode := testVolume("pvBadMode", "1Gi")
    	pvBadMode.Spec.AccessModes = []v1.PersistentVolumeAccessMode{v1.ReadOnlyMany}
    
    	index := newPersistentVolumeOrderedIndex()
    	index.store.Add(pv1)
    	index.store.Add(pv5)
    	index.store.Add(pv8)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 21 13:31:28 UTC 2023
    - 44K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. pkg/scheduler/internal/cache/snapshot_test.go

    		},
    		{
    			name: "scheduled pods that use PVC",
    			pods: []*v1.Pod{
    				st.MakePod().Name("foo").Namespace("foo").Node("node-1").PVC("pvc1").Obj(),
    				st.MakePod().Name("bar").Namespace("bar").Node("node-2").PVC("pvc2").Obj(),
    			},
    			expected: sets.New("foo/pvc1", "bar/pvc2"),
    		},
    	}
    
    	for _, test := range tests {
    		t.Run(test.name, func(t *testing.T) {
    			usedPVCs := createUsedPVCSet(test.pods)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 05 08:00:25 UTC 2023
    - 12K bytes
    - Viewed (0)
  9. 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)
  10. src/math/j0.go

    //         We use the following function to approximate y0,
    //              y0(x) = U(z)/V(z) + (2/pi)*(j0(x)*ln(x)), z= x**2
    //         where
    //              U(z) = u00 + u01*z + ... + u06*z**6
    //              V(z) = 1  + v01*z + ... + v04*z**4
    //         with absolute approximation error bounded by 2**-72.
    //         Note: For tiny x, U/V = u0 and j0(x)~1, hence
    //              y0(tiny) = u0 + (2/pi)*ln(tiny), (choose tiny<2**-27)
    //      2. For x>=2.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 13.6K bytes
    - Viewed (0)
Back to top