Skip to content

Commit

Permalink
move latest release to 4.17
Browse files Browse the repository at this point in the history
Signed-off-by: Adam D. Cornett <[email protected]>
  • Loading branch information
acornett21 committed Oct 2, 2024
1 parent 755831a commit 3b562bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/bundle/bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions internal/bundle/bundle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 3b562bb

Please sign in to comment.