Skip to content

[make][pre-commit]Check CRD schema to avoid update issues#302

Merged
openshift-merge-bot[bot] merged 1 commit into
mainfrom
crd-checker
May 5, 2025
Merged

[make][pre-commit]Check CRD schema to avoid update issues#302
openshift-merge-bot[bot] merged 1 commit into
mainfrom
crd-checker

Conversation

@dprince
Copy link
Copy Markdown
Contributor

@dprince dprince commented May 5, 2025

The new crd-schema-check make target compares the CRD schema of the patch with the schema on the tip of main and report errors on non backward compatible changes.

This make target now also run in pre-commit both locally and in CI.

This make target uses https://github.com/openshift/crd-schema-checker to do the actual checking.

Related: OSPRH-11833

@openshift-ci openshift-ci Bot requested review from evallesp and viroel May 5, 2025 14:18
@openshift-ci openshift-ci Bot added the approved label May 5, 2025
The new crd-schema-check make target compares the CRD schema of the
patch with the schema on the tip of main and report errors on non
backward compatible changes.

This make target now also run in pre-commit both locally and in CI.

This make target uses https://github.com/openshift/crd-schema-checker
to do the actual checking.

Related: OSPRH-11833
Copy link
Copy Markdown
Contributor

@stuggi stuggi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented May 5, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dprince, stuggi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot Bot merged commit dbdceb7 into main May 5, 2025
13 checks passed
@openshift-merge-bot openshift-merge-bot Bot deleted the crd-checker branch May 5, 2025 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants