Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ReservedForPod (1.05 sec)

  1. pkg/scheduler/framework/plugins/dynamicresources/dynamicresources_test.go

    				DeallocationRequested(true).
    				Obj()
    	inUseClaim = st.FromResourceClaim(pendingImmediateClaim).
    			Allocation("some-driver", &resourcev1alpha2.AllocationResult{}).
    			ReservedForPod(podName, types.UID(podUID)).
    			Obj()
    	structuredInUseClaim = st.FromResourceClaim(inUseClaim).
    				Structured("worker", "instance-1").
    				Obj()
    	allocatedClaim = st.FromResourceClaim(pendingDelayedClaim).
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 07:57:10 UTC 2024
    - 61.9K bytes
    - Viewed (0)
  2. pkg/scheduler/testing/wrappers.go

    	wrapper.ResourceClaim.Status.ReservedFor = consumers
    	return wrapper
    }
    
    // ReservedFor sets that field of the inner object given information about one pod.
    func (wrapper *ResourceClaimWrapper) ReservedForPod(podName string, podUID types.UID) *ResourceClaimWrapper {
    	return wrapper.ReservedFor(resourcev1alpha2.ResourceClaimConsumerReference{Resource: "pods", Name: podName, UID: podUID})
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 07:57:10 UTC 2024
    - 42.1K bytes
    - Viewed (0)
Back to top