mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2026-01-08 16:21:50 +00:00
Merge pull request #77479 from danielqsj/id
fix increment-decrement lint error
This commit is contained in:
@@ -200,7 +200,7 @@ func containerGCTest(f *framework.Framework, test testRun) {
|
||||
containerCount := 0
|
||||
for _, containerName := range containerNames {
|
||||
if containerName == pod.getContainerName(i) {
|
||||
containerCount += 1
|
||||
containerCount++
|
||||
}
|
||||
}
|
||||
if containerCount > maxPerPodContainer+1 {
|
||||
@@ -228,7 +228,7 @@ func containerGCTest(f *framework.Framework, test testRun) {
|
||||
containerCount := 0
|
||||
for _, containerName := range containerNames {
|
||||
if containerName == pod.getContainerName(i) {
|
||||
containerCount += 1
|
||||
containerCount++
|
||||
}
|
||||
}
|
||||
if pod.restartCount > 0 && containerCount < maxPerPodContainer+1 {
|
||||
|
||||
Reference in New Issue
Block a user