Skip to content

Commit

Permalink
Merge pull request #78 from inteon/versionchecker_add_exception
Browse files Browse the repository at this point in the history
testdata fetcher: add exception for the v1.15.0-beta.0 release which was abandoned
  • Loading branch information
cert-manager-prow[bot] authored Jun 5, 2024
2 parents e2f1e4b + 01583fe commit fc9c780
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 fc9c780

Please sign in to comment.