Skip to content

Commit

Permalink
fix: release sort order
Browse files Browse the repository at this point in the history
The OrderReleaseList returns the latest release last, which is not what
the comment on the function says. Because of this, exec sometimes fails
if there are two releases available (can happen when switching to a new
release).
  • Loading branch information
ctrox committed Oct 10, 2024
1 parent a5f4f5b commit d03704b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/util/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ func OrderReleaseList(releaseList *apps.ReleaseList) {
return applicationNameI < applicationNameJ
}

return releaseList.Items[i].CreationTimestampNano < releaseList.Items[j].CreationTimestampNano
return releaseList.Items[i].CreationTimestampNano > releaseList.Items[j].CreationTimestampNano
})
}

0 comments on commit d03704b

Please sign in to comment.