Merge pull request #78361 from tedyu/stateful-get-rev

Break out of loop when currentRevision is found in defaultStatefulSetControl#getStatefulSetRevisions
This commit is contained in:
Kubernetes Prow Robot 2019-07-15 12:37:23 -07:00 committed by GitHub
commit 12f36302f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -231,6 +231,7 @@ func (ssc *defaultStatefulSetControl) getStatefulSetRevisions(
for i := range revisions {
if revisions[i].Name == set.Status.CurrentRevision {
currentRevision = revisions[i]
break
}
}