Skip to content

Commit 7fc6aac

Browse files
committed
OCPBUGS-41851: call ComponentGlobalsRegistry.Set() after parsing flag
Signed-off-by: Jayapriya Pai <[email protected]>
1 parent 962ccca commit 7fc6aac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/metrics-server/app/options/options.go

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ func (o *Options) Flags() (fs flag.NamedFlagSets) {
8686
msfs.StringVar(&o.Kubeconfig, "kubeconfig", o.Kubeconfig, "The path to the kubeconfig used to connect to the Kubernetes API server and the Kubelets (defaults to in-cluster config)")
8787

8888
o.GenericServerRunOptions.AddUniversalFlags(fs.FlagSet("generic"))
89+
o.GenericServerRunOptions.ComponentGlobalsRegistry.Set()
8990
o.KubeletClient.AddFlags(fs.FlagSet("kubelet client"))
9091
o.SecureServing.AddFlags(fs.FlagSet("apiserver secure serving"))
9192
o.Authentication.AddFlags(fs.FlagSet("apiserver authentication"))

0 commit comments

Comments
 (0)