Skip to content

feat: add ocp_versions to pattern metadata schema - #36

Merged
mbaldessari merged 1 commit into
validatedpatterns:mainfrom
p-rog:compatibility-check
Aug 24, 2026
Merged

feat: add ocp_versions to pattern metadata schema#36
mbaldessari merged 1 commit into
validatedpatterns:mainfrom
p-rog:compatibility-check

Conversation

@p-rog

@p-rog p-rog commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Extends pattern.schema.json with the ocp_versions property so patterns can declare OCP version compatibility requirements in their pattern-metadata.yaml.

Schema additions

  • ocp_versions — optional object property on the root schema
  • ocpVersions definition — contains minimum (version string) and unsupported (array of version+reason objects)
  • unsupportedOcpVersion definition — requires version and reason, both validated with a semver-like pattern

Example usage in pattern-metadata.yaml

ocp_versions:
  minimum: "4.20"
  unsupported:
    - version: "4.23"
      reason: "Not yet validated — operator catalog and channel availability unconfirmed"

Related PRs

Made with Cursor

Add schema definitions for the ocp_versions section used by the
validate_ocp_version role in rhvp.cluster_utils to check cluster
compatibility before pattern installation.

Signed-off-by: Przemyslaw Roguski <proguski@redhat.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@p-rog

p-rog commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

@mbaldessari please take a look at this PR.

@mbaldessari

Copy link
Copy Markdown
Contributor

/lgtm

@mbaldessari

Copy link
Copy Markdown
Contributor

I'll merge this once we're happy with the main one

@p-rog

p-rog commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

@mbaldessari the main MR is already merged: validatedpatterns/rhvp.cluster_utils#151, I think we can go ahead and merge this one as well, wdyt?

@mbaldessari

Copy link
Copy Markdown
Contributor

Ah yes, thanks for the reminder, merging now!

@mbaldessari
mbaldessari merged commit e627735 into validatedpatterns:main Aug 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants