Skip to content

Commit

Permalink
add exception to the testdata fetcher because the v1.15.0-beta.0 rele…
Browse files Browse the repository at this point in the history
…ase was abandoned

Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
  • Loading branch information
inteon committed Jun 5, 2024
1 parent dca11b0 commit 01583fe
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions internal/versionchecker/test/testdata/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ const downloadURL = "https://github.com/cert-manager/cert-manager/releases/downl

const dummyVersion = "v99.99.99"

var ignoredVersions = map[string]struct{}{
"v1.15.0-beta.0": {}, // This beta release was abandoned when we detected a bug in the release process.
}

func main() {
ctx := context.Background()
stdOut := os.Stdout
Expand Down Expand Up @@ -81,6 +85,11 @@ func main() {
os.Exit(1)
}

// Remove any ignored versions
for version := range ignoredVersions {
delete(remoteVersions, version)
}

// List the remote versions that are not in the inventory
newVersions := make([]string, 0, len(remoteVersions))
for version := range remoteVersions {
Expand Down

0 comments on commit 01583fe

Please sign in to comment.