Merge pull request #97779 from tiloso/staticcheck-test-integration-gs

Fix staticcheck in test/integration/{garbagecollector,scheduler_perf}
This commit is contained in:
Kubernetes Prow Robot
2021-03-10 16:04:23 -08:00
committed by GitHub
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{