Repository navigation
Fix compiler and test failures with latest version of sigs.k8s.io/controller-runtime - #7979
Conversation
Signed-off-by: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com>
| Client: mgr.GetClient(), | ||
| Scheme: mgr.GetScheme(), | ||
| EventRecorder: mgr.GetEventRecorderFor("recipe-controller"), | ||
| EventRecorder: mgr.GetEventRecorderFor("deployment-controller"), |
|
Looks like
Do you know if I agree with suppressing the warning. It's probably being triggered because our tests will register a new instance of the same controller for each test. |
rynowak
left a comment
There was a problem hiding this comment.
Changes in this PR so far look right 👍. Will look again after you resolve build issues.
I'm having an issue with the Validation to prevent duplication of controller names was added in PR2902, and a few days later PR2918 added the |
Signed-off-by: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com>
Signed-off-by: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com>
|
Thanks. Based on this comment, we're in exactly the same test scenario as the user here: kubernetes-sigs/controller-runtime#2902 (comment) Sounds like it's intended we use |
|
@rynowak I needed to bump the |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7979 +/- ##
=======================================
Coverage 60.61% 60.62%
=======================================
Files 534 534
Lines 28488 28484 -4
=======================================
Hits 17269 17269
+ Misses 9702 9698 -4
Partials 1517 1517 ☔ View full report in Codecov by Sentry. |
Radius functional test overview
Click here to see the list of tools in the current test run
Test Status⌛ Building Radius and pushing container images for functional tests... |
Signed-off-by: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com>
Radius functional test overview
Click here to see the list of tools in the current test run
Test Status⌛ Building Radius and pushing container images for functional tests... |
Description
A recent change to the
controller-runtimepackage caused Radius compilation errors and test failures, as referenced in #7882. Breaking changes incontroller-runtimeinclude the removal of a configuration option, and a new validation that prevents duplicate controller names. This PR makes changes to update the packages referenced, fix the compilation errors, and address the test failures.Changes include:
go.modandgo.sum.controller-runtime/pkg/clientoptions toclient-go/rest/Config, as required by the changes incontroller-runtime.SkipNameValidationconfiguration parameter to unit tests for creating new controllers.cli/controller/reconcilerintoshared-test.go.Type of change
Fixes: #7882
Contributor checklist
Please verify that the PR meets the following requirements, where applicable: