Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testdata fetcher: add exception for the v1.15.0-beta.0 release which was abandoned #78

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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