From 781266046722bee4b223d44735e3bf20e98f6669 Mon Sep 17 00:00:00 2001 From: "Adam D. Cornett" Date: Wed, 28 Feb 2024 12:43:48 -0700 Subject: [PATCH] add ocp 4.16 / k8s 1.29 to ocp to k8s conversion map 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 d96bebf3..ff2dbbe4 100644 --- a/internal/bundle/bundle.go +++ b/internal/bundle/bundle.go @@ -29,9 +29,10 @@ var ocpToKubeVersion = map[string]string{ "4.13": "1.26", "4.14": "1.27", "4.15": "1.28", + "4.16": "1.29", } -const latestReleasedVersion = "4.14" +const latestReleasedVersion = "4.15" 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 94e98435..c713c66b 100644 --- a/internal/bundle/bundle_test.go +++ b/internal/bundle/bundle_test.go @@ -107,7 +107,8 @@ var _ = Describe("BundleValidateCheck", func() { Entry(">= 4.8", "v4.8", latestReleasedVersion, true), Entry(">= 4.9", "v4.9", latestReleasedVersion, true), Entry(">= 4.11", "v4.11", latestReleasedVersion, true), - Entry(">= 4.15, which is more than released", "v4.15", "4.15", true), + Entry(">= 4.15", "v4.15", latestReleasedVersion, true), + Entry(">= 4.16, which is more than released", "v4.16", "4.16", true), Entry("begins = with error", "=foo", "", false), Entry("bare version with error", "vfoo", "", false), Entry("range with error", "v4.6-vfoo", "", false),