1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-26 13:29:11 +01:00

Merge pull request #1100 from a7i/1.27-rc0

bump to k8s 1.27 rc0
This commit is contained in:
Kubernetes Prow Robot
2023-04-03 06:03:54 -07:00
committed by GitHub
1073 changed files with 59022 additions and 22308 deletions

View File

@@ -62,8 +62,8 @@ func NewDeschedulerCommand(out io.Writer) *cobra.Command {
klog.ErrorS(err, "failed to apply secure server configuration")
return
}
var factory registry.LogFormatFactory
var factory registry.LogFormatFactory
if s.Logging.Format == "json" {
factory = jsonLog.Factory{}
}
@@ -71,11 +71,11 @@ func NewDeschedulerCommand(out io.Writer) *cobra.Command {
if factory == nil {
klog.ClearLogger()
} else {
log, logrFlush := factory.Create(registry.LoggingConfiguration{
log, loggerControl := factory.Create(registry.LoggingConfiguration{
Format: s.Logging.Format,
Verbosity: s.Logging.Verbosity,
})
defer logrFlush()
}, registry.LoggingOptions{})
defer loggerControl.Flush()
klog.SetLogger(log)
}