Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 69 for claimrefns (0.21 sec)

  1. pkg/controller/volume/attachdetach/metrics/metrics_test.go

    				GCEPersistentDisk: &v1.GCEPersistentDiskVolumeSource{},
    			},
    			AccessModes: []v1.PersistentVolumeAccessMode{v1.ReadWriteOnce, v1.ReadOnlyMany},
    			// this one we're pretending is already bound
    			ClaimRef: &v1.ObjectReference{UID: "metric-test-pvc-1", Namespace: "metric-test"},
    		},
    	}
    	pvcInformer.Informer().GetStore().Add(pvc)
    	pvInformer.Informer().GetStore().Add(pv)
    	pvcLister := pvcInformer.Lister()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 10:42:15 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. pkg/kubelet/volumemanager/reconciler/reconciler_test.go

    			AccessModes: []v1.PersistentVolumeAccessMode{
    				v1.ReadWriteOnce,
    				v1.ReadOnlyMany,
    			},
    			VolumeMode: &mode,
    			ClaimRef:   &v1.ObjectReference{Namespace: "ns", Name: "pvc-volume-name"},
    		},
    	}
    
    	gcepvc := &v1.PersistentVolumeClaim{
    		ObjectMeta: metav1.ObjectMeta{UID: "pvc-001", Name: "pvc-volume-name", Namespace: "ns"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 07:34:33 UTC 2024
    - 75.4K bytes
    - Viewed (0)
  3. plugin/pkg/auth/authorizer/node/node_authorizer_test.go

    		pv.Spec.ClaimRef = &corev1.ObjectReference{Name: fmt.Sprintf("pvc%d-%s", i, pod.Name), Namespace: pod.Namespace}
    		pvs = append(pvs, pv)
    
    		pod.Spec.Volumes = append(pod.Spec.Volumes, corev1.Volume{VolumeSource: corev1.VolumeSource{
    			PersistentVolumeClaim: &corev1.PersistentVolumeClaimVolumeSource{ClaimName: pv.Spec.ClaimRef.Name},
    		}})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/volumebinding/binder.go

    			return false, fmt.Errorf("pv %q node affinity doesn't match node %q: %w", pv.Name, node.Name, err)
    		}
    
    		// Check if pv.ClaimRef got dropped by unbindVolume()
    		if pv.Spec.ClaimRef == nil || pv.Spec.ClaimRef.UID == "" {
    			return false, fmt.Errorf("ClaimRef got reset for pv %q", pv.Name)
    		}
    
    		// Check if pvc is fully bound
    		if !b.isPVCFullyBound(pvc) {
    			return false, nil
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 14:55:34 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  5. pkg/printers/internalversion/printers_test.go

    				ObjectMeta: metav1.ObjectMeta{
    					Name: "test1",
    				},
    				Spec: api.PersistentVolumeSpec{
    					ClaimRef:    &claimRef,
    					AccessModes: []api.PersistentVolumeAccessMode{api.ReadOnlyMany},
    					Capacity: map[api.ResourceName]resource.Quantity{
    						api.ResourceStorage: resource.MustParse("4Gi"),
    					},
    				},
    				Status: api.PersistentVolumeStatus{
    					Phase: api.VolumeBound,
    				},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 218.6K bytes
    - Viewed (0)
  6. pkg/volume/util/operationexecutor/operation_generator.go

    			pv := volumeToMount.VolumeSpec.PersistentVolume
    			pvc, err := og.kubeClient.CoreV1().PersistentVolumeClaims(pv.Spec.ClaimRef.Namespace).Get(context.TODO(), pv.Spec.ClaimRef.Name, metav1.GetOptions{})
    			if err != nil {
    				eventErr, detailedErr := volumeToMount.GenerateError("VerifyControllerAttachedVolume fetching pvc failed", err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 101.4K bytes
    - Viewed (0)
  7. pkg/volume/util/operationexecutor/operation_generator_test.go

    			featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.RecoverVolumeExpansionFailure, true)
    			volumePluginMgr, fakePlugin := volumetesting.GetTestKubeletVolumePluginMgr(t)
    			test.pv.Spec.ClaimRef = &v1.ObjectReference{
    				Namespace: test.pvc.Namespace,
    				Name:      test.pvc.Name,
    			}
    
    			pvc := test.pvc
    			pv := test.pv
    			pod := getTestPod("test-pod", pvc.Name)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  8. pkg/kubelet/volumemanager/reconciler/reconstruct_test.go

    	pv := &v1.PersistentVolume{
    		ObjectMeta: metav1.ObjectMeta{
    			Name: pvName,
    			UID:  "pvuid",
    		},
    		Spec: v1.PersistentVolumeSpec{
    			ClaimRef:   &v1.ObjectReference{Name: pvcName},
    			VolumeMode: &volumeMode,
    		},
    	}
    	pvc := &v1.PersistentVolumeClaim{
    		ObjectMeta: metav1.ObjectMeta{
    			Name: pvcName,
    			UID:  "pvcuid",
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  9. pkg/scheduler/framework/plugins/volumebinding/assume_cache_test.go

    	assumecache.AddTestObject(cache.AssumeCache, pv)
    	if err := verifyPV(cache, pvName, pv); err != nil {
    		t.Fatalf("failed to get PV: %v", err)
    	}
    
    	// Assume PV
    	newPV := pv.DeepCopy()
    	newPV.Spec.ClaimRef = &v1.ObjectReference{Name: "test-claim"}
    	if err := cache.Assume(newPV); err != nil {
    		t.Fatalf("failed to assume PV: %v", err)
    	}
    	if err := verifyPV(cache, pvName, newPV); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 09:46:58 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  10. pkg/controller/volume/persistentvolume/framework_test.go

    			StorageClassName:              class,
    			VolumeMode:                    &fs,
    		},
    		Status: v1.PersistentVolumeStatus{
    			Phase: phase,
    		},
    	}
    
    	if boundToClaimName != "" {
    		volume.Spec.ClaimRef = &v1.ObjectReference{
    			Kind:       "PersistentVolumeClaim",
    			APIVersion: "v1",
    			UID:        types.UID(boundToClaimUID),
    			Namespace:  testNamespace,
    			Name:       boundToClaimName,
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 09:54:00 UTC 2023
    - 38.3K bytes
    - Viewed (0)
Back to top