🌱 Simplify Boxcutter applier interface#2446
🌱 Simplify Boxcutter applier interface#2446openshift-merge-bot[bot] merged 1 commit intooperator-framework:mainfrom
Conversation
✅ Deploy Preview for olmv1 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
aff9804 to
f9d8598
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #2446 +/- ##
==========================================
+ Coverage 69.38% 69.48% +0.09%
==========================================
Files 101 101
Lines 7719 7701 -18
==========================================
- Hits 5356 5351 -5
+ Misses 1925 1914 -11
+ Partials 438 436 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- Change Apply() to return only error instead of (bool, string, error), removing status interpretation logic from the applier. ClusterExtensionRevision conditions are already mirrored to ClusterExtension. - Change ApplyBundleWithBoxcutter to accept a function instead of an interface, making unit tests simpler by allowing inline function mocks Co-Authored-By: Claude <noreply@anthropic.com>
f9d8598 to
484448a
Compare
| } else { | ||
| require.NoError(t, err) | ||
| assert.False(t, installSucceeded) | ||
| assert.Equal(t, "New revision created", installStatus) |
There was a problem hiding this comment.
How can we ensure that we have the same status as before?
Is not the goal only refactory ( as described in the pr title? ) Should we change the behaviour ?
There was a problem hiding this comment.
We already mirror statuses from active cluster revisions into ClusterExtension status. As you can see, e2e tests are passing without any change.
This PR is not just refactoring, it simplifies BoxCutter apply logic:
- we do not try to read CER conditions and based on that report to the caller if CER installation was successful or not
- instead, ClusterExtension reconciliation is triggered on CER update, and ClusterExtension controller is going to detect if the active revision is installed and mirror fields under
.statusaccordingly.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: camilamacedo86 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/override codecov/patch |
|
@pedjak: Overrode contexts on behalf of pedjak: codecov/patch DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
dc20dfb
into
operator-framework:main
Description
Reviewer Checklist