chore: integrate crdify CRD upgrade safety checks into CI [RHIDP-8670] - #3290
Conversation
…ecks that OLM v1 does Signed-off-by: Fortune Ndlovu <fndlovu@redhat.com>
PR Summary by QodoIntegrate crdify CRD upgrade safety checks into PR CI
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
Code Review by Qodo
Context used✅ Compliance rules (platform):
18 rules✅ Cross-repo context Not relevant to this PR:
redhat-developer/rhdh Not relevant to this PR:
redhat-developer/rhdh-plugins 1.
|
- Remove .crdify.yaml config file - Compare PR CRD against base branch (origin/main) instead of release tags - Mark v1alpha4 as unserved to fix served-version incompatibilities - Regenerate CRD manifests Signed-off-by: Fortune Ndlovu <fndlovu@redhat.com>
…nch comparison Signed-off-by: Fortune Ndlovu <fndlovu@redhat.com>
Signed-off-by: Fortune Ndlovu <fndlovu@redhat.com>
|
/agentic_review |
…k PRs Signed-off-by: Fortune Ndlovu <fndlovu@redhat.com>
|
Code review by qodo was updated up to the latest commit 2ac8a3b |
The git:// URL parser splits on '/' so origin/main was parsed as ref='origin' not 'origin/main'. Fetch base branch into a local ref and pass just the branch name instead. Signed-off-by: Fortune Ndlovu <fndlovu@redhat.com>
|



Description
OLM v1mod.go file uses crdify (https://github.com/kubernetes-sigs/crdify) to perform CRD upgrade safety preflight checks at runtime. If the RHDH operator's CRD has breaking changes between versions, OLM v1 rejects the upgrade on customer clusters see https://github.com/operator-framework/operator-controller/blob/main/internal/operator-controller/rukpak/preflights/crdupgradesafety/crdupgradesafety.go. This PR integrates crdify into CI so we catch these issues at PR time rather than at runtime.
Which issue(s) does this PR fix or relate to
PR acceptance criteria
How to test changes / Special notes to the reviewer
Building Container Images for Testing
Need to test container images from this PR?
For Maintainers: To trigger a test image build, review the code and comment
/build-images.This always builds the HEAD of the PR branch.
For Contributors: Ask a maintainer to run
/build-images.Images will be built and pushed to Quay with links posted in comments.