cpuset: Remove *Int64 methods

These are rarely used and can be accommodated with a trivial helper.
This commit is contained in:
Ian K. Coolidge
2022-11-08 05:54:42 +00:00
parent 67a057d4f2
commit a0c989b99a
3 changed files with 15 additions and 33 deletions

View File

@@ -522,7 +522,11 @@ func podresourcesGetAllocatableResourcesTests(ctx context.Context, cli kubeletpo
resp, err := cli.GetAllocatableResources(ctx, &kubeletpodresourcesv1.AllocatableResourcesRequest{})
framework.ExpectNoErrorWithOffset(1, err)
devs := resp.GetDevices()
allocatableCPUs := cpuset.NewCPUSetInt64(resp.GetCpuIds()...)
b := cpuset.NewBuilder()
for _, cpuid := range resp.GetCpuIds() {
b.Add(int(cpuid))
}
allocatableCPUs := b.Result()
if onlineCPUs.Size() == 0 {
ginkgo.By("expecting no CPUs reported")