Skip to content

Commit

Permalink
updating ocp to k8s map for latest release
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 31, 2023
1 parent f04b781 commit 901d1f8
Show file tree
Hide file tree
Showing 2 changed files with 3 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 @@ -28,9 +28,10 @@ var ocpToKubeVersion = map[string]string{
"4.12": "1.25",
"4.13": "1.26",
"4.14": "1.27",
"4.15": "1.28",
}

const latestReleasedVersion = "4.13"
const latestReleasedVersion = "4.14"

func Validate(ctx context.Context, imagePath string) (*Report, error) {
logger := logr.FromContextOrDiscard(ctx)
Expand Down
2 changes: 1 addition & 1 deletion internal/bundle/bundle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ 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.13, which is more than released", "v4.13", "4.13", true),
Entry(">= 4.15, which is more than released", "v4.15", "4.15", 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 901d1f8

Please sign in to comment.