From 282a25bdfdc9d9759015bbfa3d1a29b569825d1a Mon Sep 17 00:00:00 2001 From: "Adam D. Cornett" Date: Tue, 25 Jun 2024 08:12:30 -0700 Subject: [PATCH] move latest released version to 4.16 Signed-off-by: Adam D. Cornett --- internal/bundle/bundle.go | 3 ++- internal/bundle/bundle_test.go | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/bundle/bundle.go b/internal/bundle/bundle.go index ff2dbbe4..52941c71 100644 --- a/internal/bundle/bundle.go +++ b/internal/bundle/bundle.go @@ -30,9 +30,10 @@ var ocpToKubeVersion = map[string]string{ "4.14": "1.27", "4.15": "1.28", "4.16": "1.29", + "4.17": "1.30", } -const latestReleasedVersion = "4.15" +const latestReleasedVersion = "4.16" 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 c713c66b..79eae449 100644 --- a/internal/bundle/bundle_test.go +++ b/internal/bundle/bundle_test.go @@ -108,7 +108,8 @@ var _ = Describe("BundleValidateCheck", func() { Entry(">= 4.9", "v4.9", latestReleasedVersion, true), Entry(">= 4.11", "v4.11", latestReleasedVersion, true), Entry(">= 4.15", "v4.15", latestReleasedVersion, true), - Entry(">= 4.16, which is more than released", "v4.16", "4.16", 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("begins = with error", "=foo", "", false), Entry("bare version with error", "vfoo", "", false), Entry("range with error", "v4.6-vfoo", "", false),