Skip to content
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

Merged
merged 1 commit into from
Oct 19, 2023
Merged

Conversation

ffromani
Copy link
Member

add command line flags and options to disable
the functionality, and disable it by default.

@openshift-ci openshift-ci bot requested review from jlojosnegros and Tal-or October 19, 2023 09:10
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 19, 2023

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 19, 2023
@ffromani ffromani added the cherry-pick-candidate Possible cherry-pick in the future label Oct 19, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 19, 2023

@ffromani: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/ci-install-e2e e50b517 link true /test ci-install-e2e

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.

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")
Copy link
Member

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

Copy link
Member Author

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]>
@ffromani ffromani merged commit 0a8bbd7 into main Oct 19, 2023
5 checks passed
@ffromani ffromani deleted the hook-options branch October 19, 2023 12:29
@ffromani
Copy link
Member Author

/cherry-pick release-4.14

@openshift-cherrypick-robot

@ffromani: new pull request created: #724

In response to this:

/cherry-pick release-4.14

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.

@ffromani ffromani added the cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. label Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. cherry-pick-candidate Possible cherry-pick in the future
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants