From 0a9c3e96842084ab0c97471b7be8806eb2fc7ea5 Mon Sep 17 00:00:00 2001 From: Michael McCune Date: Fri, 29 May 2020 17:25:30 -0400 Subject: [PATCH] remove unused variable from autoscaling e2e This change removes the `coreCount` variable and associated counting logic from the cluster size autoscaling test. This variable was used during the 1.9 release era, but the tests that used it were removed before the 1.10 release. Please see the referenced commits[0][1] for more information. [0] https://github.com/kubernetes/kubernetes/commit/c8b807837a381003981f75b9dff5d8cd79e7750d [1] https://github.com/kubernetes/kubernetes/commit/fd738945b1c4376a9303c2034ddb32988eaeea5c --- test/e2e/autoscaling/cluster_size_autoscaling.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/test/e2e/autoscaling/cluster_size_autoscaling.go b/test/e2e/autoscaling/cluster_size_autoscaling.go index f428aafb996..ba5a34527b1 100644 --- a/test/e2e/autoscaling/cluster_size_autoscaling.go +++ b/test/e2e/autoscaling/cluster_size_autoscaling.go @@ -95,7 +95,6 @@ var _ = SIGDescribe("Cluster size autoscaling [Slow]", func() { f := framework.NewDefaultFramework("autoscaling") var c clientset.Interface var nodeCount int - var coreCount int64 var memAllocatableMb int var originalSizes map[string]int @@ -118,11 +117,6 @@ var _ = SIGDescribe("Cluster size autoscaling [Slow]", func() { nodes, err := e2enode.GetReadySchedulableNodes(f.ClientSet) framework.ExpectNoError(err) nodeCount = len(nodes.Items) - coreCount = 0 - for _, node := range nodes.Items { - quantity := node.Status.Allocatable[v1.ResourceCPU] - coreCount += quantity.Value() - } ginkgo.By(fmt.Sprintf("Initial number of schedulable nodes: %v", nodeCount)) framework.ExpectNotEqual(nodeCount, 0) mem := nodes.Items[0].Status.Allocatable[v1.ResourceMemory]