Skip to content

Commit

Permalink
Remove Class Name from Dynamic Resources
Browse files Browse the repository at this point in the history
Claims are no longer associated with one class in kube 1.31

Signed-off-by: Benjamin Pickard <[email protected]>
  • Loading branch information
bpickard22 committed Jan 22, 2025
1 parent 3ad1ea9 commit 13c8400
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions pkg/kubeletclient/kubeletclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,6 @@ func (rc *kubeletClient) getDRAResources(dynamicResources []*podresourcesapi.Dyn
}
}
}
if rInfo, ok := resourceMap[dynamicResource.ClassName]; ok {
rInfo.DeviceIDs = append(rInfo.DeviceIDs, deviceIDs...)
} else {
resourceMap[dynamicResource.ClassName] = &types.ResourceInfo{DeviceIDs: deviceIDs}
}
}
}

Expand Down
1 change: 0 additions & 1 deletion pkg/kubeletclient/kubeletclient_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ func (m *fakeResourceServer) List(_ context.Context, _ *podresourcesapi.ListPodR

dynamicResources := []*podresourcesapi.DynamicResource{
{
ClassName: "resource-class",
ClaimName: "resource-claim",
ClaimNamespace: "dynamic-resource-pod-namespace",
ClaimResources: claimsResource,
Expand Down

0 comments on commit 13c8400

Please sign in to comment.