Skip to content

Commit

Permalink
move latest released version to 4.16
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 Jun 27, 2024
1 parent b926353 commit 282a25b
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 @@ -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)
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 @@ -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),
Expand Down

0 comments on commit 282a25b

Please sign in to comment.