-
Notifications
You must be signed in to change notification settings - Fork 14
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
operator: metrics: hooks: add disabling options #723
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ffromani 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 |
@ffromani: The following test failed, say
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/test-infra repository. I understand the commands that are listed here. |
e50b517
to
6317baf
Compare
main.go
Outdated
@@ -110,6 +114,8 @@ func main() { | |||
flag.BoolVar(&showVersion, "version", false, "outputs the version and exit") | |||
flag.BoolVar(&enableScheduler, "enable-scheduler", false, "enable support for the NUMAResourcesScheduler object") | |||
flag.BoolVar(&enableWebhooks, "enable-webhooks", false, "enable conversion webhooks") | |||
flag.BoolVar(&enableWebhooks, "enable-metrics", false, "enable metrics server") |
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.
you already have a flag (metricsAddr), wouldn't it be better to change the default value? Otherwise the cli ux is misleading, you set the address but nothing happens
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.
Yes, I'm still evaluating the best approach here
add command line flags and options to disable the functionality, and disable it by default. Signed-off-by: Francesco Romani <[email protected]>
6317baf
to
1e865a1
Compare
/cherry-pick release-4.14 |
@ffromani: new pull request created: #724 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/test-infra repository. |
add command line flags and options to disable
the functionality, and disable it by default.