mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-17 23:57:49 +00:00
Break out of loop when currentRevision is found in defaultStatefulSetControl#getStatefulSetRevisions
This commit is contained in:
parent
9ddc9ccc57
commit
7a2edb780a
@ -231,6 +231,7 @@ func (ssc *defaultStatefulSetControl) getStatefulSetRevisions(
|
|||||||
for i := range revisions {
|
for i := range revisions {
|
||||||
if revisions[i].Name == set.Status.CurrentRevision {
|
if revisions[i].Name == set.Status.CurrentRevision {
|
||||||
currentRevision = revisions[i]
|
currentRevision = revisions[i]
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user