Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for IsForPod (0.92 sec)

  1. pkg/controller/resourceclaim/controller.go

    		}
    		if err != nil {
    			// Shouldn't happen.
    			return true, fmt.Sprintf("internal error while checking for claim: %v", err)
    		}
    
    		if checkOwner &&
    			resourceclaim.IsForPod(pod, claim) != nil {
    			// Cannot proceed with the pod unless that other claim gets deleted.
    			return false, "conflicting claim needs to be removed by user"
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 03:34:25 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/dra/manager.go

    			metav1.GetOptions{})
    		if err != nil {
    			return fmt.Errorf("failed to fetch ResourceClaim %s referenced by pod %s: %+v", *claimName, pod.Name, err)
    		}
    
    		if mustCheckOwner {
    			if err = resourceclaim.IsForPod(pod, resourceClaim); err != nil {
    				return err
    			}
    		}
    
    		// Check if pod is in the ReservedFor for the claim
    		if !resourceclaim.IsReservedForPod(pod, resourceClaim) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 03 13:23:29 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/dynamicresources/dynamicresources.go

    		if err != nil {
    			return err
    		}
    
    		if claim.DeletionTimestamp != nil {
    			return fmt.Errorf("resourceclaim %q is being deleted", claim.Name)
    		}
    
    		if mustCheckOwner {
    			if err := resourceclaim.IsForPod(pod, claim); err != nil {
    				return err
    			}
    		}
    		if cb != nil {
    			cb(resource.Name, claim)
    		}
    	}
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 15:22:37 UTC 2024
    - 75.9K bytes
    - Viewed (0)
Back to top