Skip to content

Commit

Permalink
DRA: read ResourceClaim in DRA drivers
Browse files Browse the repository at this point in the history
This is the second and final step towards making kubelet independent of the
resource.k8s.io API versioning because it now doesn't need to copy structs
defined by that API from the driver to the API server.

Kubernetes-commit: 348f94ab55053ec9b4382de880406e27a730d8cd
  • Loading branch information
pohly authored and k8s-publishing-bot committed Apr 11, 2024
1 parent 63f4c6d commit 45d6a8c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 178 deletions.
202 changes: 34 additions & 168 deletions pkg/apis/dra/v1alpha3/api.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions pkg/apis/dra/v1alpha3/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ package v1alpha3;
option go_package = "k8s.io/kubelet/pkg/apis/dra/v1alpha3";

import "github.com/gogo/protobuf/gogoproto/gogo.proto";
import "k8s.io/api/resource/v1alpha2/generated.proto";

option (gogoproto.goproto_stringer_all) = false;
option (gogoproto.stringer_all) = true;
Expand Down Expand Up @@ -102,13 +101,4 @@ message Claim {
// The name of the Resource claim (ResourceClaim.meta.Name)
// This field is REQUIRED.
string name = 3;
// Resource handle (AllocationResult.ResourceHandles[*].Data)
// This field is REQUIRED.
string resource_handle = 4;
// Structured parameter resource handle (AllocationResult.ResourceHandles[*].StructuredData).
// This field is OPTIONAL. If present, it needs to be used
// instead of resource_handle. It will only have a single entry.
//
// Using "repeated" instead of "optional" is a workaround for https://github.com/gogo/protobuf/issues/713.
repeated k8s.io.api.resource.v1alpha2.StructuredResourceHandle structured_resource_handle = 5;
}

0 comments on commit 45d6a8c

Please sign in to comment.