Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for IsReservedForPod (0.17 sec)

  1. pkg/controller/resourceclaim/controller.go

    				// Need to update PodSchedulingContext.
    				return true, "need to updated PodSchedulingContext for scheduled pod"
    			}
    		}
    		if claim.Status.Allocation != nil &&
    			!resourceclaim.IsReservedForPod(pod, claim) &&
    			resourceclaim.CanBeReserved(claim) {
    			// Need to reserve it.
    			return true, "need to reserve claim for pod"
    		}
    	}
    
    	return false, "nothing to do"
    }
    
    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

    		}
    
    		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) {
    			return fmt.Errorf("pod %s(%s) is not allowed to use resource claim %s(%s)",
    				pod.Name, pod.UID, *claimName, resourceClaim.UID)
    		}
    
    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 claim.Status.Allocation != nil &&
    			!resourceclaim.CanBeReserved(claim) &&
    			!resourceclaim.IsReservedForPod(pod, claim) {
    			// Resource is in use. The pod has to wait.
    			return nil, statusUnschedulable(logger, "resourceclaim in use", "pod", klog.KObj(pod), "resourceclaim", klog.KObj(claim))
    		}
    
    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