diff --git a/internal/versionchecker/test/testdata/fetch.go b/internal/versionchecker/test/testdata/fetch.go index 2270e72..a496d92 100644 --- a/internal/versionchecker/test/testdata/fetch.go +++ b/internal/versionchecker/test/testdata/fetch.go @@ -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 @@ -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 {