Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for claimrefns (0.23 sec)

  1. pkg/kubelet/container/helpers_test.go

    	var innerEventRecorder = &innerEventRecorder{
    		recorder: nil,
    	}
    
    	_, actual := innerEventRecorder.shouldRecordEvent(nil)
    	assert.Equal(t, false, actual)
    
    	var obj = &v1.ObjectReference{Namespace: "claimrefns", Name: "claimrefname"}
    
    	_, actual = innerEventRecorder.shouldRecordEvent(obj)
    	assert.Equal(t, true, actual)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 01:55:46 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  2. pkg/controller/statefulset/stateful_set_utils_test.go

    					}
    					set.Spec.Replicas = &tc.replicas
    					claimRefs := claim.GetOwnerReferences()
    					if setPodRef {
    						claimRefs = addControllerRef(claimRefs, &pod, podKind)
    					}
    					if setSetRef {
    						claimRefs = addControllerRef(claimRefs, &set, controllerKind)
    					}
    					if useOtherRefs {
    						claimRefs = append(
    							claimRefs,
    							metav1.OwnerReference{
    								Name:       "rand1",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 50.9K bytes
    - Viewed (0)
  3. pkg/controller/volume/persistentvolume/pv_controller.go

    				if claim.UID != volume.Spec.ClaimRef.UID {
    					logger.V(4).Info("Synchronizing PersistentVolume, claim has a newer UID than pv.ClaimRef, the old one must have been deleted", "PVC", klog.KRef(volume.Spec.ClaimRef.Namespace, volume.Spec.ClaimRef.Name), "volumeName", volume.Name)
    					claim = nil
    				} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 08:42:31 UTC 2024
    - 89.2K bytes
    - Viewed (0)
  4. pkg/controller/volume/persistentvolume/pv_controller_base.go

    	boundByController := metav1.HasAnnotation(volume.ObjectMeta, storagehelpers.AnnBoundByController)
    	claimName := ""
    	if volume.Spec.ClaimRef != nil {
    		claimName = fmt.Sprintf("%s/%s (uid: %s)", volume.Spec.ClaimRef.Namespace, volume.Spec.ClaimRef.Name, volume.Spec.ClaimRef.UID)
    	}
    	return fmt.Sprintf("phase: %s, bound to: %q, boundByController: %v", volume.Status.Phase, claimName, boundByController)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 08:42:31 UTC 2024
    - 29.5K bytes
    - Viewed (0)
  5. pkg/controller/volume/expand/expand_controller_test.go

    		Spec: v1.PersistentVolumeSpec{
    			PersistentVolumeSource: v1.PersistentVolumeSource{},
    			ClaimRef: &v1.ObjectReference{
    				Namespace: "default",
    			},
    			Capacity: map[v1.ResourceName]resource.Quantity{
    				v1.ResourceStorage: resource.MustParse(size),
    			},
    		},
    	}
    	if pvcUID != "" {
    		pv.Spec.ClaimRef.UID = pvcUID
    	}
    
    	if matched, _ := regexp.MatchString(`csi`, pluginName); matched {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 11:00:37 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  6. pkg/kubelet/volumemanager/populator/desired_state_of_world_populator_test.go

    	// create dswp
    	mode := v1.PersistentVolumeFilesystem
    	pv := &v1.PersistentVolume{
    		ObjectMeta: metav1.ObjectMeta{
    			Name: "dswp-test-volume-name",
    		},
    		Spec: v1.PersistentVolumeSpec{
    			ClaimRef:   &v1.ObjectReference{Namespace: "ns", Name: "file-bound"},
    			VolumeMode: &mode,
    		},
    	}
    	pvc := &v1.PersistentVolumeClaim{
    		Spec: v1.PersistentVolumeClaimSpec{
    			VolumeName: "dswp-test-volume-name",
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.4K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/plugins/volumebinding/binder_test.go

    			continue
    		}
    		if pv.Spec.ClaimRef == nil {
    			t.Errorf("PV %q ClaimRef is nil", b.pv.Name)
    			continue
    		}
    		if pv.Spec.ClaimRef.Name != b.pvc.Name {
    			t.Errorf("expected PV.ClaimRef.Name %q, got %q", b.pvc.Name, pv.Spec.ClaimRef.Name)
    		}
    		if pv.Spec.ClaimRef.Namespace != b.pvc.Namespace {
    			t.Errorf("expected PV.ClaimRef.Namespace %q, got %q", b.pvc.Namespace, pv.Spec.ClaimRef.Namespace)
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 09:46:58 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  8. pkg/kubelet/volumemanager/populator/desired_state_of_world_populator.go

    	}
    
    	if pv.Spec.ClaimRef == nil {
    		return nil, "", fmt.Errorf(
    			"found PV object %s but it has a nil pv.Spec.ClaimRef indicating it is not yet bound to the claim",
    			name)
    	}
    
    	if pv.Spec.ClaimRef.UID != expectedClaimUID {
    		return nil, "", fmt.Errorf(
    			"found PV object %s but its pv.Spec.ClaimRef.UID %s does not point to claim.UID %s",
    			name,
    			pv.Spec.ClaimRef.UID,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 09:02:45 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/testdata/v1.30.0/core.v1.PersistentVolume.json

    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/testdata/v1.30.0/storage.k8s.io.v1alpha1.VolumeAttachment.yaml

            user: userValue
          cinder:
            fsType: fsTypeValue
            readOnly: true
            secretRef:
              name: nameValue
              namespace: namespaceValue
            volumeID: volumeIDValue
          claimRef:
            apiVersion: apiVersionValue
            fieldPath: fieldPathValue
            kind: kindValue
            name: nameValue
            namespace: namespaceValue
            resourceVersion: resourceVersionValue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 6.6K bytes
    - Viewed (0)
Back to top