Skip to content

Commit

Permalink
chore: add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JGAntunes committed Dec 10, 2024
1 parent 768679c commit 940b596
Show file tree
Hide file tree
Showing 4 changed files with 404 additions and 6 deletions.
3 changes: 1 addition & 2 deletions pkg/kotsadmsnapshot/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -982,11 +982,10 @@ func ListInstanceBackups(ctx context.Context, kotsadmNamespace string) ([]*types
}
}
replicatedBackupsMap[backupName].Backups = append(replicatedBackupsMap[backupName].Backups, backup)

}

replicatedBackups := []*types.ReplicatedBackup{}
for _, rb := range replicatedBackups {
for _, rb := range replicatedBackupsMap {
replicatedBackups = append(replicatedBackups, rb)
}

Expand Down
Loading

0 comments on commit 940b596

Please sign in to comment.