Fix staticcheck in test/integration/{scheduler_perf,garbagecollector}

This commit is contained in:
tiloso
2021-01-06 21:37:19 +01:00
parent 18605d8814
commit e1ceac0783
3 changed files with 4 additions and 9 deletions

View File

@@ -439,6 +439,7 @@ func benchmarkScheduling(numExistingPods, minPods int,
testPodStrategy testutils.TestPodCreateStrategy,
b *testing.B) {
if b.N < minPods {
//lint:ignore SA3001 Set a minimum for b.N to get more meaningful results
b.N = minPods
}
finalFunc, podInformer, clientset := mustSetupScheduler()
@@ -498,7 +499,7 @@ func benchmarkScheduling(numExistingPods, minPods int,
b.StopTimer()
}
// makeBasePodWithSecrets creates a Pod object to be used as a template.
// makeBasePodWithSecret creates a Pod object to be used as a template.
// The pod uses a single Secrets volume.
func makeBasePodWithSecret() *v1.Pod {
basePod := &v1.Pod{