-
Notifications
You must be signed in to change notification settings - Fork 254
Remove redundant import of generic admission server cmd #2355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove redundant import of generic admission server cmd #2355
Conversation
@JoelSpeed: all tests passed! Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2355 +/- ##
=======================================
Coverage 58.51% 58.51%
=======================================
Files 182 182
Lines 25884 25884
=======================================
Hits 15147 15147
Misses 9460 9460
Partials 1277 1277 |
This seems to resolve the problem:
We'll want a more thorough (upstream) solution eventually, but this gets us past the present hurdle. Thanks @JoelSpeed ! /lgtm /override "Red Hat Konflux / hive-on-pull-request" |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 2uasimojo, JoelSpeed The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@2uasimojo: Overrode contexts on behalf of 2uasimojo: Red Hat Konflux / hive-on-pull-request In 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. |
7da1a73
into
openshift:master
Workaround for kubernetes-sigs/controller-runtime#2238 |
I have no idea why this package was imported, but, at present, importing this package imports a single Go file which does not have an init function, but, does pull in other packages that eventually do have init functions.
The result of this being imported in
main.go
is that it ends up calling the component base metrics workqueue stuff first, which means the controller-runtime stuff doesn't win the race currently.This removal could have unintended side effects if there are other
init
functions that we are relying on, but it does remove the component-base workqueue metrics from the init tree, fixing the metrics issue at hand. If there are otherinit
s that we are relying on, perhaps those packages should be imported explicitly rather than implicitly as they are today anyway?Suggest to go through some testing before merge.
HIVE-2543