Skip to content

🐛 fix crdupgradesafety diff when items schema differ #1863

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

Merged

Conversation

joelanford
Copy link
Member

@joelanford joelanford commented Mar 12, 2025

Description

Fixes #1860

I also ended up deciding to copy the remaining bits from kapp into our repo so that we have control over our own destiny. Happy to discuss if folks have a differing opinion on that! The PR is structured into multiple commits to make it easy to see what I'm doing.

The first four commits are just pulling the copied code in, and getting it integrated into our repo.
The last commit is the actual fix itself.

Reviewer Checklist

  • API Go Documentation
  • Tests: Unit Tests (and E2E Tests, if appropriate)
  • Comprehensive Commit Messages
  • Links to related GitHub Issue(s)

@joelanford joelanford requested a review from a team as a code owner March 12, 2025 16:45
Copy link

netlify bot commented Mar 12, 2025

Deploy Preview for olmv1 ready!

Name Link
🔨 Latest commit 2f57dbd
🔍 Latest deploy log https://app.netlify.com/sites/olmv1/deploys/67d1c1f91da03900088e3b0b
😎 Deploy Preview https://deploy-preview-1863--olmv1.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Mar 12, 2025

Codecov Report

Attention: Patch coverage is 96.31902% with 6 lines in your changes missing coverage. Please review.

Project coverage is 69.04%. Comparing base (995dc2b) to head (2f57dbd).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...er/rukpak/preflights/crdupgradesafety/validator.go 89.65% 4 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1863      +/-   ##
==========================================
+ Coverage   68.45%   69.04%   +0.59%     
==========================================
  Files          63       65       +2     
  Lines        5136     5263     +127     
==========================================
+ Hits         3516     3634     +118     
- Misses       1390     1396       +6     
- Partials      230      233       +3     
Flag Coverage Δ
e2e 50.01% <7.36%> (-1.67%) ⬇️
unit 56.96% <96.31%> (+0.94%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@joelanford joelanford force-pushed the fix-crdupgradesafety-diff branch from 2b142e1 to 2f57dbd Compare March 12, 2025 17:18
@oceanc80
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Mar 12, 2025
@grokspawn
Copy link
Contributor

Really appreciate the multi-commit approach here. It made it much easier to tease out which were adoption versus lint versus fix. Thanks!

@joelanford joelanford added this pull request to the merge queue Mar 12, 2025
Merged via the queue into operator-framework:main with commit 7061d92 Mar 12, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CRD Upgrade Check fails with lots of "unknown change, refusing to determine that change is safe"
3 participants