mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-11 06:02:18 +00:00
Fix staticcheck in test/integration/{scheduler_perf,garbagecollector}
This commit is contained in:
@@ -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{
|
||||
|
Reference in New Issue
Block a user