From 35f6ad187b0ab23bbc0690395c3d8d32b4db3ebb Mon Sep 17 00:00:00 2001 From: Andrea Nodari Date: Mon, 20 May 2019 15:14:16 +0200 Subject: [PATCH] Fix golint failures for test/e2e/scalability --- test/e2e/scalability/density.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/e2e/scalability/density.go b/test/e2e/scalability/density.go index e36f9c94ee5..4251050e407 100644 --- a/test/e2e/scalability/density.go +++ b/test/e2e/scalability/density.go @@ -402,7 +402,7 @@ var _ = SIGDescribe("Density", func() { var uuid string var e2eStartupTime time.Duration var totalPods int - var nodeCpuCapacity int64 + var nodeCPUCapacity int64 var nodeMemCapacity int64 var nodes *v1.NodeList var scheduleThroughputs []float64 @@ -508,7 +508,7 @@ var _ = SIGDescribe("Density", func() { gomega.Expect(nodeCount).NotTo(gomega.BeZero()) // Compute node capacity, leaving some slack for addon pods. - nodeCpuCapacity = nodes.Items[0].Status.Allocatable.Cpu().MilliValue() - 100 + nodeCPUCapacity = nodes.Items[0].Status.Allocatable.Cpu().MilliValue() - 100 nodeMemCapacity = nodes.Items[0].Status.Allocatable.Memory().Value() - 100*1024*1024 // Terminating a namespace (deleting the remaining objects from it - which @@ -691,7 +691,7 @@ var _ = SIGDescribe("Density", func() { Timeout: timeout, PodStatusFile: fileHndl, Replicas: (totalPods + numberOfCollections - 1) / numberOfCollections, - CpuRequest: nodeCpuCapacity / 100, + CpuRequest: nodeCPUCapacity / 100, MemRequest: nodeMemCapacity / 100, MaxContainerFailures: &MaxContainerFailures, Silent: true, @@ -851,7 +851,7 @@ var _ = SIGDescribe("Density", func() { // Thanks to it we trigger increasing priority function by scheduling // a pod to a node, which in turn will result in spreading latency pods // more evenly between nodes. - cpuRequest := *resource.NewMilliQuantity(nodeCpuCapacity/5, resource.DecimalSI) + cpuRequest := *resource.NewMilliQuantity(nodeCPUCapacity/5, resource.DecimalSI) memRequest := *resource.NewQuantity(nodeMemCapacity/5, resource.DecimalSI) if podsPerNode > 30 { // This is to make them schedulable on high-density tests