[DRAFT] Simplify operator config by defaulting to OSSM#115
Conversation
|
Skipping CI for Draft Pull Request. |
|
/hold |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mkolesnik 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 |
|
/test all |
|
/retest |
7e3ad13 to
0fa1113
Compare
|
@CodeRabbit review |
✅ Action performedReview finished.
|
📝 WalkthroughWalkthroughThe PR removes platform/product-claim–based operator selection from the Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes 🚥 Pre-merge checks | ✅ 8 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (8 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
✅ Action performedReview finished.
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@test/integration/controller_test.go`:
- Around line 218-224: The Eventually assertions used in the async checks (the
Eventually block at the specified location and other similar blocks) rely on
implicit default timeout and polling interval values, making the test behavior
non-deterministic under CI load. Add explicit timeout and polling interval
parameters to all Eventually calls in the async assertion blocks. Specify these
parameters using Eventually's configuration options to ensure consistent and
predictable test timing behavior across different environments. This applies to
the Eventually block shown in the diff and any other similar Eventually calls in
async assertion patterns throughout the test file.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: 468b434d-024a-4b7c-b584-8bd208749983
📒 Files selected for processing (6)
docs/design.mdpkg/apis/mesh/v1alpha1/types.gopkg/hub/mesh/controller.gotest/e2e/mesh_lifecycle_test.gotest/integration/controller_test.gotest/util/ocm.go
0fa1113 to
57cb31b
Compare
Remove platform branching from the controller. Kubebuilder defaults now set OSSM values at admission time, so the controller just reads spec.operator directly without computing per-platform defaults. This eliminates applyOperatorDefaults, product claim gating, and all the OCP/K8s constant pairs. Users can still override all fields to use a different operator (e.g. Sail on Kind for dev/testing). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Mike Kolesnik <mkolesni@redhat.com>
57cb31b to
863a1d9
Compare
Removes platform branching from the controller.
Kubebuilder defaults now set OSSM values at admission time, so the controller reads
spec.operatordirectly.Users can override all fields to use a different operator (e.g. Sail on Kind for dev/testing).
Depends-On: #114