Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 132 for claim (0.15 sec)

  1. pkg/kubelet/cm/dra/manager_test.go

    						{
    							Name: "test-pod-claim-4",
    							Source: v1.ClaimSource{ResourceClaimName: func() *string {
    								s := "test-pod-claim-4"
    								return &s
    							}()},
    						},
    					},
    					Containers: []v1.Container{
    						{
    							Resources: v1.ResourceRequirements{
    								Claims: []v1.ResourceClaim{
    									{
    										Name: "test-pod-claim-4",
    									},
    								},
    							},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 03 13:30:29 UTC 2024
    - 42K bytes
    - Viewed (0)
  2. pkg/controller/resourceclaim/controller_test.go

    	claim = claim.DeepCopy()
    	// As far the controller is concerned, a claim was allocated by us if it has
    	// this finalizer. For testing we don't need to update the allocation result.
    	claim.Finalizers = append(claim.Finalizers, resourcev1alpha2.Finalizer)
    	return claim
    }
    
    func reserveClaim(claim *resourcev1alpha2.ResourceClaim, pod *v1.Pod) *resourcev1alpha2.ResourceClaim {
    	claim = claim.DeepCopy()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 06 08:56:16 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  3. pkg/controller/volume/persistentvolume/pv_controller_test.go

    		reactor := newVolumeReactor(ctx, client, ctrl, fakeVolumeWatch, fakeClaimWatch, test.errors)
    		for _, claim := range test.initialClaims {
    			claim = claim.DeepCopy()
    			reactor.AddClaim(claim)
    			go func(claim *v1.PersistentVolumeClaim) {
    				fakeClaimWatch.Add(claim)
    			}(claim)
    		}
    		for _, volume := range test.initialVolumes {
    			volume = volume.DeepCopy()
    			reactor.AddVolume(volume)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 43.4K bytes
    - Viewed (0)
  4. pkg/controller/volume/persistentvolume/delete_test.go

    				// Bind the volume to resurrected claim (this should never
    				// happen)
    				claim := newClaim("claim8-7", "uid8-7", "10Gi", "volume8-7", v1.ClaimBound, nil)
    				reactor.AddClaimBoundToVolume(claim)
    				ctrl.claims.Add(claim)
    			}),
    		},
    		{
    			// delete success - volume bound by user is deleted, while a new
    			// claim is created with another UID.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  5. pkg/controller/resourceclaim/controller.go

    				logger.V(5).Info("pod for claim not found", "claim", klog.KObj(claim), "pod", klog.KRef(claim.Namespace, podName))
    			default:
    				return fmt.Errorf("lookup pod: %v", err)
    			}
    		} else {
    			logger.V(5).Info("claim not generated for a pod", "claim", klog.KObj(claim))
    		}
    	}
    
    	return nil
    }
    
    func owningPod(claim *resourcev1alpha2.ResourceClaim) (string, types.UID) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 03:34:25 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/dra/manager.go

    	err := m.cache.withLock(func() error {
    		// Mark all pod claims as prepared.
    		for _, claim := range resourceClaims {
    			info, exists := m.cache.get(claim.Name, claim.Namespace)
    			if !exists {
    				return fmt.Errorf("unable to get claim info for claim %s in namespace %s", claim.Name, claim.Namespace)
    			}
    			info.setPrepared()
    		}
    
    		// Checkpoint to ensure all prepared claims are tracked with their list
    		// of CDI devices attached.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 03 13:23:29 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  7. pkg/apis/resource/validation/validation_resourceclaim_test.go

    				return claim
    			}(),
    		},
    		"uid": {
    			claim: func() *resource.ResourceClaim {
    				claim := testClaim(goodName, goodNS, goodClaimSpec)
    				claim.UID = "ac051fac-2ead-46d9-b8b4-4e0fbeb7455d"
    				return claim
    			}(),
    		},
    		"resource-version": {
    			claim: func() *resource.ResourceClaim {
    				claim := testClaim(goodName, goodNS, goodClaimSpec)
    				claim.ResourceVersion = "1"
    				return claim
    			}(),
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  8. pkg/controller/statefulset/stateful_pod_control_test.go

    			for k := range claims0 {
    				claim, err := claimLister.PersistentVolumeClaims(claims0[k].Namespace).Get(claims0[k].Name)
    				if err != nil {
    					t.Errorf("Unexpected error getting Claim %s/%s: %v", claim.Namespace, claim.Name, err)
    				}
    				if hasOwnerRef(claim, set) != expectRef {
    					t.Errorf("%s: Claim %s/%s bad set owner ref", tc.name, claim.Namespace, claim.Name)
    				}
    			}
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 35.5K bytes
    - Viewed (0)
  9. pkg/controller/volume/persistentvolume/pv_controller_base.go

    func (ctrl *PersistentVolumeController) deleteClaim(ctx context.Context, claim *v1.PersistentVolumeClaim) {
    	logger := klog.FromContext(ctx)
    	if err := ctrl.claims.Delete(claim); err != nil {
    		logger.Error(err, "Claim deletion encountered", "PVC", klog.KObj(claim))
    	}
    	claimKey := claimToClaimKey(claim)
    	logger.V(4).Info("Claim deleted", "PVC", klog.KObj(claim))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 08:42:31 UTC 2024
    - 29.5K bytes
    - Viewed (0)
  10. pkg/controller/statefulset/stateful_set_utils.go

    	templates := set.Spec.VolumeClaimTemplates
    	claims := make(map[string]v1.PersistentVolumeClaim, len(templates))
    	for i := range templates {
    		claim := templates[i].DeepCopy()
    		claim.Name = getPersistentVolumeClaimName(set, claim, ordinal)
    		claim.Namespace = set.Namespace
    		if claim.Labels != nil {
    			for key, value := range set.Spec.Selector.MatchLabels {
    				claim.Labels[key] = value
    			}
    		} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 26.7K bytes
    - Viewed (0)
Back to top