-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[make][pre-commit]Check CRD schema to avoid update issues #271
[make][pre-commit]Check CRD schema to avoid update issues #271
Conversation
lgtm |
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
9e8fdf4
to
a8df309
Compare
@@ -376,3 +376,11 @@ scale-down-placement-controller-csv: | |||
if [ "$(has_webhooks)" != "null" ]; then \ | |||
oc patch csv -n $(OPERATOR_NAMESPACE) placement-operator.v0.0.1 --type json -p='[{"op": "remove", "path": "/spec/webhookdefinitions"}]'; \ | |||
fi | |||
|
|||
CRD_SCHEMA_CHECKER_VERSION ?= release-4.16 | |||
BRANCH=main |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good to have it for main as of now, but we should also cover cherry picks to fr branches
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Looks good!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gibizer, mrkisaolamb The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
77c84ef
into
openstack-k8s-operators:main
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