Skip to content

Commit

Permalink
add ocp 4.16 / k8s 1.29 to ocp to k8s conversion map
Browse files Browse the repository at this point in the history
Signed-off-by: Adam D. Cornett <adc@redhat.com>
  • Loading branch information
acornett21 committed Mar 4, 2024
1 parent 9ec4c11 commit 7812660
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion internal/bundle/bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion internal/bundle/bundle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 7812660

Please sign in to comment.