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

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
}
}