OTA-2084: Register agenticrunv1alpha1 in the Runtime client scheme - #1434
Conversation
|
@jrangelramos: This pull request explicitly references no jira issue. 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 openshift-eng/jira-lifecycle-plugin repository. |
|
Warning Review limit reached
Next review available in: 44 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
WalkthroughThe runtime controller client scheme now imports and registers Lightspeed agentic run API types, allowing the client to recognize those objects. ChangesAgentic run scheme registration
Estimated code review effort: 1 (Trivial) | ~2 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ 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 |
|
@jrangelramos: This pull request references OTA-2084 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "5.0.0" version, but no target version was set. 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 openshift-eng/jira-lifecycle-plugin repository. |
|
/verified by Jefferson Ramos |
|
@jrangelramos: This PR has been marked as verified by 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 openshift-eng/jira-lifecycle-plugin repository. |
|
Verification summary $ oc get pod -n openshift-cluster-version
NAME READY STATUS RESTARTS AGE
cluster-version-operator-68b44f996c-xsjhv 1/1 Running 0 25m
$ oc logs cluster-version-operator-68b44f996c-xsjhv | grep "failed to list agentic runs"
$ oc logs cluster-version-operator-68b44f996c-xsjhv | grep "agenticrun"
I0727 18:23:13.543968 1 controller.go:189] Started syncing CVO configuration "ClusterVersionOperator/agenticrun-lifecycle-controller"
I0727 18:26:43.642579 1 controller.go:189] Started syncing CVO configuration "ClusterVersionOperator/agenticrun-lifecycle-controller"
I0727 18:30:13.624062 1 controller.go:189] Started syncing CVO configuration "ClusterVersionOperator/agenticrun-lifecycle-controller"
I0727 18:33:43.603588 1 controller.go:189] Started syncing CVO configuration "ClusterVersionOperator/agenticrun-lifecycle-controller"
I0727 18:37:13.617753 1 controller.go:189] Started syncing CVO configuration "ClusterVersionOperator/agenticrun-lifecycle-controller"
I0727 18:40:43.615794 1 controller.go:189] Started syncing CVO configuration "ClusterVersionOperator/agenticrun-lifecycle-controller"
$ oc get agenticrun -n openshift-lightspeed
NAME AGE
ota-5-0-0-ec-4-to-5-0-1 24m
ota-5-0-0-ec-4-to-5-0-10 24m
ota-5-0-0-ec-4-to-5-0-7 24m
ota-5-0-0-ec-4-to-5-0-8 24m
ota-5-0-0-ec-4-to-5-0-9 24m
ota-5-0-0-ec-4-to-5-1-0 24m
ota-5-0-0-ec-4-to-5-1-1 24m
ota-5-0-0-ec-4-to-5-1-2 24m
ota-5-0-0-ec-4-to-5-1-3 24m
ota-5-0-0-ec-4-to-5-1-4 24m |
PR openshift#1428 switched RuntimeControllerClientOrDie from the global scheme to a local scheme but missed registering agenticrunv1alpha1, breaking the agenticrun-lifecycle-controller. Add the missing AddToScheme call. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
c31c79c to
bf48f07
Compare
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jrangelramos, wking 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 |
|
/verified by Jefferson Ramos |
|
@jrangelramos: This PR has been marked as verified by 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 openshift-eng/jira-lifecycle-plugin repository. |
|
/override ci/prow/e2e-aws-ovn-techpreview
/override ci/prow/e2e-hypershift |
|
@wking: Overrode contexts on behalf of wking: ci/prow/e2e-aws-ovn-techpreview, ci/prow/e2e-hypershift 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. |
|
/override ci/prow/e2e-agnostic-operator techpreview-serial-3of3 failed to install, leaving us blind to that job. But a previous run of that job succeeded on this same commit, and I'm still confident this pull's change isn't actually covered by our CI. /override ci/prow/e2e-agnostic-ovn-techpreview-serial-3of3 |
|
@wking: Overrode contexts on behalf of wking: ci/prow/e2e-agnostic-operator, ci/prow/e2e-agnostic-ovn-techpreview-serial-3of3 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. |
|
/override ci/prow/e2e-hypershift-conformance |
|
@wking: Overrode contexts on behalf of wking: ci/prow/e2e-hypershift-conformance 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. |
|
@jrangelramos: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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. I understand the commands that are listed here. |
Summary
After #1428, the agenticrun-lifecycle-controller fails to list/get AgenticRun resources because the
agenticrunv1alpha1types are not registered in the local runtime scheme introduced by that PR.The controller logs the following errors on every sync:
Previously,
RuntimeControllerClientOrDieused the default global scheme, which already had the agenticrun types registered viainternal.AddSchemes(). The switch to a local scheme in #1428 correctly added apiextensions and operator types but missedagenticrunv1alpha1.Fix
Add
agenticrunv1alpha1.AddToScheme(runtimeScheme)alongside the other scheme registrations inRuntimeControllerClientOrDie.🤖 Generated with Claude Code
Summary by CodeRabbit