-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
pkg/metrics: pass rest.Config to avoid flag issue in library #1626
pkg/metrics: pass rest.Config to avoid flag issue in library #1626
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should have a CHANGELOG update because its user-facing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
@AlexNPavel @lilic will this resolve the issue that we discussed offline? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should fix the issues with that PR.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description of the change:
rest.Config
tometrics.CreateMetricsService
function and remove code frommetrics
package that usescontroller-runtime
's config package to get config.Motivation for the change:
controller-runtime
's config package declares flags forkubeconfig
andmaster
API server, which is causing problems due to double flag declarations in the test framework.