Fix/controller runtime api update#449
Conversation
Signed-off-by: red-hat-konflux-kflux-prd-rh03 <206760901+red-hat-konflux-kflux-prd-rh03[bot]@users.noreply.github.com>
MetricsBindAddress and Port were removed from ctrl.Options in controller-runtime v0.19+. Use the replacement Metrics and WebhookServer fields to fix the build. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (2)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including ⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
WalkthroughThe PR bumps the Go toolchain, refreshes module versions and replace pins in ChangesRuntime and manager wiring refresh
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Important Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional. ❌ Failed checks (1 error)
✅ Passed checks (14 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
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:
|
The boilerplate tooling updates the ubi9/ubi-minimal tag during CI validation, causing a dirty checkout failure. Align the Dockerfiles with the expected tag. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
/retest |
|
@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. |
|
/retest-required |
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