Merge pull request #105065 from h4ghhh/metrics_disable

parameter 'disabled-metrics' is invalid
This commit is contained in:
Kubernetes Prow Robot 2021-10-13 12:21:55 -07:00 committed by GitHub
commit 585c88eb43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,8 +58,8 @@ func (o *Options) Validate() []error {
// AddFlags adds flags for exposing component metrics.
func (o *Options) AddFlags(fs *pflag.FlagSet) {
if o != nil {
o = NewOptions()
if o == nil {
return
}
fs.StringVar(&o.ShowHiddenMetricsForVersion, "show-hidden-metrics-for-version", o.ShowHiddenMetricsForVersion,
"The previous version for which you want to show hidden metrics. "+