:seedling: Refactor `ClusterExtension` reconciler to use composable step-based pipeline by pedjak · Pull Request #2332 · operator-framework/operator-controller
AI review requested due to automatic review settings
November 13, 2025 15:54
pedjak
changed the title
Refactor
🌱 Refactor ClusterExtension reconciler to use composable step-based pipelineClusterExtension reconciler to use composable step-based pipeline
Copilot AI review requested due to automatic review settings
November 18, 2025 12:19Copilot AI review requested due to automatic review settings
November 20, 2025 15:08
openshift-ci
bot
added
the
approved
label
Nov 21, 2025…ipeline
Replaces the monolithic 170-line reconcile() method with a flexible
step-based architecture that executes discrete reconciliation phases in
sequence. Each phase (`HandleFinalizers`, `RetrieveRevisionStates`,
`RetrieveRevisionMetadata`, `UnpackBundle`, `ApplyBundle`) is now a standalone
function that can be composed differently for Helm vs Boxcutter workflows.
Changes:
- Introduce `ReconcileStepFunc` type and `ReconcileSteps` executor
- Extract reconcile logic into individual step functions in new file
`clusterextension_reconcile_steps.go`
- Move `BoxcutterRevisionStatesGetter` to `boxcutter_reconcile_steps.go`
alongside `MigrateStorage` step
- Configure step pipelines in `main.go` for each applier type
- Refactor tests to use functional options pattern for reconciler setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters