- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for deallocationRequested (1.7 sec)
-
pkg/apis/resource/validation/validation_resourceclaim_test.go
claim.Status.Allocation = nil return claim }, }, "invalid-deallocation-requested-removal": { wantFailures: field.ErrorList{field.Forbidden(field.NewPath("status", "deallocationRequested"), "may not be cleared when `allocation` is set")}, oldClaim: func() *resource.ResourceClaim { claim := validAllocatedClaim.DeepCopy() claim.Status.DeallocationRequested = true
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 09:18:10 UTC 2024 - 28.7K bytes - Viewed (0) -
pkg/apis/resource/validation/validation.go
} if !oldClaim.Status.DeallocationRequested && resourceClaim.Status.DeallocationRequested && len(resourceClaim.Status.ReservedFor) > 0 { allErrs = append(allErrs, field.Forbidden(fldPath.Child("deallocationRequested"), "deallocation cannot be requested while `reservedFor` is set")) } if resourceClaim.Status.Allocation == nil && resourceClaim.Status.DeallocationRequested {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 09:18:10 UTC 2024 - 28.3K bytes - Viewed (0) -
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/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/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/printers/internalversion/printers.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 14:04:15 UTC 2024 - 128.3K bytes - Viewed (0) -
pkg/generated/openapi/zz_generated.openapi.go
}, }, }, }, }, "deallocationRequested": { SchemaProps: spec.SchemaProps{ Description: "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: Wed Jun 05 18:37:07 UTC 2024 - 3M bytes - Viewed (0) -
api/openapi-spec/swagger.json
}, "deallocationRequested": { "description": "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.", "type": "boolean" },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 18:37:07 UTC 2024 - 3.1M bytes - Viewed (0)