- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 25 for deallocationRequested (0.36 sec)
-
pkg/scheduler/testing/wrappers.go
}}, }}, } } return wrapper } // DeallocationRequested sets that field of the inner object. func (wrapper *ResourceClaimWrapper) DeallocationRequested(deallocationRequested bool) *ResourceClaimWrapper { wrapper.ResourceClaim.Status.DeallocationRequested = deallocationRequested return wrapper } // ReservedFor sets that field of the inner object.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 27 07:57:10 UTC 2024 - 42.1K bytes - Viewed (0) -
pkg/apis/resource/types.go
ReservedFor []ResourceClaimConsumerReference // DeallocationRequested indicates that a ResourceClaim is to be // deallocated. // // The driver then must deallocate this claim and reset the field // together with clearing the Allocation field. // // While DeallocationRequested is set, no new consumers may be added to // ReservedFor. // +optional DeallocationRequested bool }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 14 17:07:36 UTC 2024 - 22.3K bytes - Viewed (0) -
staging/src/k8s.io/api/resource/v1alpha2/generated.proto
// DeallocationRequested indicates that a ResourceClaim is to be // deallocated. // // The driver then must deallocate this claim and reset the field // together with clearing the Allocation field. // // While DeallocationRequested is set, no new consumers may be added to // ReservedFor. // +optional optional bool deallocationRequested = 4; }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 23 22:07:50 UTC 2024 - 26.2K bytes - Viewed (0) -
staging/src/k8s.io/api/resource/v1alpha2/types_swagger_doc_generated.go
"deallocationRequested": "DeallocationRequested indicates that a ResourceClaim is to be deallocated.\n\nThe driver then must deallocate this claim and reset the field together with clearing the Allocation field.\n\nWhile DeallocationRequested is set, no new consumers may be added to ReservedFor.", }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 14 17:07:36 UTC 2024 - 22.4K bytes - Viewed (0) -
pkg/controller/resourceclaim/controller_test.go
claims: []*resourcev1alpha2.ResourceClaim{testClaimReserved}, expectedClaims: func() []resourcev1alpha2.ResourceClaim { claim := testClaimAllocated.DeepCopy() claim.Status.DeallocationRequested = true return []resourcev1alpha2.ResourceClaim{*claim} }(), expectedMetrics: expectedMetrics{0, 0}, }, { name: "clear-reserved-delayed-allocation-structured", pods: []*v1.Pod{},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 06 08:56:16 UTC 2024 - 28.2K bytes - Viewed (0) -
pkg/apis/resource/v1alpha2/zz_generated.conversion.go
return err } } else { out.Allocation = nil } out.ReservedFor = *(*[]resource.ResourceClaimConsumerReference)(unsafe.Pointer(&in.ReservedFor)) out.DeallocationRequested = in.DeallocationRequested return nil } // Convert_v1alpha2_ResourceClaimStatus_To_resource_ResourceClaimStatus is an autogenerated conversion function.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 14 17:07:36 UTC 2024 - 103.6K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/dynamicresources/dynamicresources.go
return nil, statusError(logger, err) } s.informationsForClaim = make([]informationForClaim, len(claims)) needResourceInformation := false for index, claim := range claims { if claim.Status.DeallocationRequested { // This will get resolved by the resource driver. return nil, statusUnschedulable(logger, "resourceclaim must be reallocated", "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) -
pkg/scheduler/framework/plugins/dynamicresources/dynamicresources_test.go
Name(claimName2). Obj() deallocatingClaim = st.FromResourceClaim(pendingImmediateClaim). Allocation("some-driver", &resourcev1alpha2.AllocationResult{}). DeallocationRequested(true). Obj() inUseClaim = st.FromResourceClaim(pendingImmediateClaim). Allocation("some-driver", &resourcev1alpha2.AllocationResult{}). ReservedForPod(podName, types.UID(podUID)). Obj()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 27 07:57:10 UTC 2024 - 61.9K bytes - Viewed (0) -
pkg/controller/resourceclaim/controller.go
} } else if claim.Spec.AllocationMode == resourcev1alpha2.AllocationModeWaitForFirstConsumer { // DRA driver controller in the control plane // needs to do the deallocation. claim.Status.DeallocationRequested = true } // In all other cases, we keep the claim allocated, in particular for immediate allocation // with a control plane controller. }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 09 03:34:25 UTC 2024 - 37.1K bytes - Viewed (0) -
staging/src/k8s.io/api/resource/v1alpha2/generated.pb.go
`Allocation:` + strings.Replace(this.Allocation.String(), "AllocationResult", "AllocationResult", 1) + `,`, `ReservedFor:` + repeatedStringForReservedFor + `,`, `DeallocationRequested:` + fmt.Sprintf("%v", this.DeallocationRequested) + `,`, `}`, }, "") return s } func (this *ResourceClaimTemplate) String() string { if this == nil { return "nil" }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 14 17:07:36 UTC 2024 - 261.9K bytes - Viewed (0)