DRA kubelet: API clarification

It's not okay to drop a claim from the response just because it encountered no
error. We want to be sure that a DRA driver really looked at the claim.

Kubernetes-commit: 005cef332da41990d08bee826262dd71fa74f522
This commit is contained in:
Patrick Ohly 2025-06-27 09:30:28 +02:00 committed by Kubernetes Publisher
parent ee9dc3d6e6
commit 4defd3ee14
2 changed files with 4 additions and 2 deletions

View File

@ -326,7 +326,8 @@ func (m *NodeUnprepareResourcesRequest) GetClaims() []*Claim {
type NodeUnprepareResourcesResponse struct {
// The ResourceClaims for which preparation was reverted.
// The same rules as for NodePrepareResourcesResponse.claims
// apply.
// apply. In particular, all claims in the request must
// have an entry in the response, even if that entry is nil.
Claims map[string]*NodeUnprepareResourceResponse `protobuf:"bytes,1,rep,name=claims,proto3" json:"claims,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_sizecache int32 `json:"-"`

View File

@ -95,7 +95,8 @@ message NodeUnprepareResourcesRequest {
message NodeUnprepareResourcesResponse {
// The ResourceClaims for which preparation was reverted.
// The same rules as for NodePrepareResourcesResponse.claims
// apply.
// apply. In particular, all claims in the request must
// have an entry in the response, even if that entry is nil.
map<string, NodeUnprepareResourceResponse> claims = 1;
}