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
Allow show hidden metrics in kube-proxy #85279
Allow show hidden metrics in kube-proxy #85279
Conversation
This PR may require API review. If so, when the changes are ready, complete the pre-review checklist and request an API review. Status of requested reviews is tracked in the API Review project. |
/test pull-kubernetes-node-e2e-containerd |
1 similar comment
/test pull-kubernetes-node-e2e-containerd |
/hold |
/assign @thockin /hold cancel |
@@ -149,6 +149,12 @@ func (o *Options) AddFlags(fs *pflag.FlagSet) { | |||
fs.StringVar(&o.master, "master", o.master, "The address of the Kubernetes API server (overrides any value in kubeconfig)") | |||
fs.StringVar(&o.hostnameOverride, "hostname-override", o.hostnameOverride, "If non-empty, will use this string as identification instead of the actual hostname.") | |||
fs.StringVar(&o.config.IPVS.Scheduler, "ipvs-scheduler", o.config.IPVS.Scheduler, "The ipvs scheduler type when proxy mode is ipvs") | |||
fs.StringVar(&o.config.ShowHiddenMetricsForVersion, "show-hidden-metrics-for-version", o.config.ShowHiddenMetricsForVersion, | |||
"The previous version for which you want to show hidden metrics. "+ | |||
"Only the previous minor version is meaningful, other values will not be allowed. "+ |
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.
I know this is part of a larger effort, but this comment is confusing to me.
If it only allows the previous version, why do I have to specify a version?
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.
First of all, this flag is an escape hatch, it intends to be used by admins if they were not able to react to the earlier deprecation warnings.
Second of all, we don't want admins to be excessive depend on this flag, otherwise, they may fail to notice deprecate message from the next release.
Here is an example: why-not-bool-flag
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.
Thanks!
/lgtm
/approve
/test pull-kubernetes-bazel-test |
/hold I think this PR is failing pull-kubernetes-bazel-test in the merge queue |
Is there an issue tracking this failing test? Or, what can I do for this? |
you need to fix your PR, please look at the reason here: https://prow.k8s.io/view/gcs/kubernetes-jenkins/pr-logs/pull/85279/pull-kubernetes-bazel-test/1206771457862930432 |
- Update bazel by hack/update-bazel.sh - make update
58d8d19
to
4eb61e3
Compare
Just rebase master and force-push, let's see what happens. I don't know why bazel test failing in merge pool, no idea from logs, it's weird. |
I haven't go through the whole PR, @tahsinrahman can you help take a look? |
Fix proxy unit test
New commit is specially for fix unit tests. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: RainbowMango, thockin 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 |
/test pull-kubernetes-e2e-gce |
/lgtm |
/hold cancel |
/test pull-kubernetes-e2e-gce |
@RainbowMango: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Add a flag
--show-hidden-metrics-for-version
to kube-proxy for show hidden metrics.Which issue(s) this PR fixes:
Part of #85270
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: