Skip to content

Commit 4df0923

Browse files
h4ghhhk8s-publishing-bot
authored andcommitted
Added support for setting controler-manager log level online
Kubernetes-commit: 0957e15657a84f1932bbf6fafd1fd0ab92b83bfe
1 parent 44085fd commit 4df0923

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/serve.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import (
3030
"k8s.io/client-go/kubernetes/scheme"
3131
componentbaseconfig "k8s.io/component-base/config"
3232
"k8s.io/component-base/configz"
33+
"k8s.io/component-base/logs"
3334
"k8s.io/component-base/metrics/legacyregistry"
3435
_ "k8s.io/component-base/metrics/prometheus/workqueue" // for workqueue metric registration
3536
)
@@ -63,6 +64,7 @@ func NewBaseHandler(c *componentbaseconfig.DebuggingConfiguration, checks ...hea
6364
if c.EnableContentionProfiling {
6465
goruntime.SetBlockProfileRate(1)
6566
}
67+
routes.DebugFlags{}.Install(mux, "v", routes.StringFlagPutHandler(logs.GlogSetter))
6668
}
6769
configz.InstallHandler(mux)
6870
//lint:ignore SA1019 See the Metrics Stability Migration KEP

0 commit comments

Comments
 (0)