diff --git a/internal/bundle/bundle.go b/internal/bundle/bundle.go index 52941c71..bec7bc08 100644 --- a/internal/bundle/bundle.go +++ b/internal/bundle/bundle.go @@ -31,9 +31,10 @@ var ocpToKubeVersion = map[string]string{ "4.15": "1.28", "4.16": "1.29", "4.17": "1.30", + "4.18": "1.31", } -const latestReleasedVersion = "4.16" +const latestReleasedVersion = "4.17" func Validate(ctx context.Context, imagePath string) (*Report, error) { logger := logr.FromContextOrDiscard(ctx) diff --git a/internal/bundle/bundle_test.go b/internal/bundle/bundle_test.go index 79eae449..fea4ca2c 100644 --- a/internal/bundle/bundle_test.go +++ b/internal/bundle/bundle_test.go @@ -110,6 +110,7 @@ var _ = Describe("BundleValidateCheck", func() { Entry(">= 4.15", "v4.15", latestReleasedVersion, true), Entry(">= 4.16, which is more than released", "v4.16", latestReleasedVersion, true), Entry(">= 4.17, which is more than released", "v4.17", "4.17", true), + Entry(">= 4.18, which is more than released", "v4.18", "4.18", true), Entry("begins = with error", "=foo", "", false), Entry("bare version with error", "vfoo", "", false), Entry("range with error", "v4.6-vfoo", "", false),