Skip to content

Commit

Permalink
Merge pull request #240 from SovereignCloudStack/fix-latest-release
Browse files Browse the repository at this point in the history
🐛 Show correct latest release per ClusterStack
  • Loading branch information
guettli authored Sep 9, 2024
2 parents d73c233 + 3855a18 commit c797c2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/controller/clusterstack_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,8 @@ func (r *ClusterStackReconciler) getExistingClusterStackReleases(ctx context.Con

for i := range csrList.Items {
csr := csrList.Items[i]
for i := range csr.GetOwnerReferences() {
ownerRef := csr.GetOwnerReferences()[i]
for j := range csr.GetOwnerReferences() {
ownerRef := csr.GetOwnerReferences()[j]
if matchesOwnerRef(&ownerRef, clusterStack) {
existingClusterStackReleases = append(existingClusterStackReleases, &csrList.Items[i])
break
Expand Down

0 comments on commit c797c2e

Please sign in to comment.