Fix/controller runtime api update#449
Conversation
|
Warning Review limit reached
Next review available in: 55 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: Enterprise Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
WalkthroughThe PR bumps the Go toolchain, refreshes ChangesRuntime and manager wiring refresh
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: Important Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional. ❌ Failed checks (1 error, 1 warning)
✅ Passed checks (13 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 |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pshickeydev 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 |
Codecov Report❌ Patch coverage is
❌ Your patch status has failed because the patch coverage (0.00%) is below the target coverage (50.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## master #449 +/- ##
=======================================
Coverage 72.44% 72.44%
=======================================
Files 11 11
Lines 704 704
=======================================
Hits 510 510
Misses 173 173
Partials 21 21
🚀 New features to boost your workflow:
|
|
/retest |
|
/retest-required |
d127aa6 to
7cc12e6
Compare
|
/test lint |
7cc12e6 to
76233e7
Compare
Update sigs.k8s.io/controller-runtime from v0.15.0 to v0.24.1 along with its required k8s.io ecosystem dependencies. Replace removed MetricsBindAddress and Port fields in ctrl.Options with the replacement Metrics and WebhookServer fields. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
76233e7 to
1a32209
Compare
|
/test lint |
|
@pshickeydev: 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
MetricsBindAddressandPortfields inctrl.Optionswith their v0.19+ replacements:Metrics(metricsserver.Options) andWebhookServer(webhook.NewServer)Context
Renovate PR #445 bumped
sigs.k8s.io/controller-runtimefrom v0.15 to v0.24.1. This upgrade removed two fields fromctrl.Optionsthatmain.gowas using:./main.go:89:3: unknown field MetricsBindAddress in struct literal of type controllerruntime.Options
./main.go:90:3: unknown field Port in struct literal of type controllerruntime.Options
All four CI checks (images, test, coverage, lint) fail with these compile errors.
No CVEs or security advisories are associated with this controller-runtime upgrade — it is a routine dependency freshness bump.
Changes
main.go— 4 lines changed:sigs.k8s.io/controller-runtime/pkg/metrics/serverandsigs.k8s.io/controller-runtime/pkg/webhookMetricsBindAddress: metricsAddrwithMetrics: metricsserver.Options{BindAddress: metricsAddr}Port: 9443withWebhookServer: webhook.NewServer(webhook.Options{Port: 9443})Behavior is identical — same bind address, same port, same defaults.
Test plan
go build ./...passesgo vet ./...cleango test ./...all tests passSummary by CodeRabbit