From 3b562bb54a8827671f659cd079984d3e1fe9567d Mon Sep 17 00:00:00 2001 From: "Adam D. Cornett" Date: Tue, 1 Oct 2024 14:48:11 -0700 Subject: [PATCH] move latest release to 4.17 Signed-off-by: Adam D. Cornett --- internal/bundle/bundle.go | 3 ++- internal/bundle/bundle_test.go | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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),