Merge pull request #18169 from kargakis/smarter-scaling

kubectl: Make scaling smarter
This commit is contained in:
Zach Loafman
2016-01-22 10:24:51 -08:00
6 changed files with 548 additions and 298 deletions

View File

@@ -112,7 +112,7 @@ func JobHasDesiredParallelism(c ExtensionsInterface, job *extensions.Job) wait.C
}
// desired parallelism can be either the exact number, in which case return immediately
if job.Status.Active == *job.Spec.Parallelism {
if job.Spec.Parallelism != nil && job.Status.Active == *job.Spec.Parallelism {
return true, nil
}
// otherwise count successful