Skip to content

Conversation

@perdasilva
Copy link
Contributor

Description

Removes references from the ClusterExtensionRevision Paused lifecycle state, since we don't plan on including it for now

Reviewer Checklist

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

Copilot AI review requested due to automatic review settings December 4, 2025 16:53
@perdasilva perdasilva requested a review from a team as a code owner December 4, 2025 16:53
@openshift-ci openshift-ci bot requested review from oceanc80 and tmshort December 4, 2025 16:54
@netlify
Copy link

netlify bot commented Dec 4, 2025

Deploy Preview for olmv1 ready!

Name Link
🔨 Latest commit 0d98698
🔍 Latest deploy log https://app.netlify.com/projects/olmv1/deploys/6931bca81f1ff60008069dea
😎 Deploy Preview https://deploy-preview-2373--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 project configuration.

@openshift-ci
Copy link

openshift-ci bot commented Dec 4, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign thetechnick for approval. For more information see the Code Review Process.

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

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

Copilot finished reviewing on behalf of perdasilva December 4, 2025 16:56
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes the "Paused" lifecycle state from the ClusterExtensionRevision API, simplifying the lifecycle model to only support "Active" and "Archived" states. The removal is comprehensive, eliminating the constant definition, related controller logic, and boxcutter integration code.

  • Removed the ClusterExtensionRevisionLifecycleStatePaused constant and its documentation
  • Removed controller logic that handled paused state (boxcutter WithPaused option)
  • Simplified revision filtering logic to only skip archived revisions

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
api/v1/clusterextensionrevision_types.go Removed the ClusterExtensionRevisionLifecycleStatePaused constant and its documentation
internal/operator-controller/controllers/clusterextensionrevision_controller.go Removed the conditional logic that added boxcutter.WithPaused option for paused revisions
internal/operator-controller/controllers/boxcutter_reconcile_steps.go Simplified from a switch statement to a simple conditional check, now only skipping archived revisions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link

codecov bot commented Dec 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.86%. Comparing base (d44cbaf) to head (0d98698).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2373      +/-   ##
==========================================
+ Coverage   72.26%   74.86%   +2.60%     
==========================================
  Files          95       95              
  Lines        7336     7332       -4     
==========================================
+ Hits         5301     5489     +188     
+ Misses       1631     1409     -222     
- Partials      404      434      +30     
Flag Coverage Δ
e2e 44.88% <0.00%> (?)
experimental-e2e 49.29% <100.00%> (-0.04%) ⬇️
unit 58.85% <0.00%> (+0.03%) ⬆️

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant