mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
kube-scheduler: log the unhandled error
Signed-off-by: cyclinder <qifeng.guo@daocloud.io>
This commit is contained in:
parent
2af53e9f64
commit
1a16de783b
@ -100,7 +100,9 @@ for more information about scheduling and the kube-scheduler component.`,
|
|||||||
cols, _, _ := term.TerminalSize(cmd.OutOrStdout())
|
cols, _, _ := term.TerminalSize(cmd.OutOrStdout())
|
||||||
cliflag.SetUsageAndHelpFunc(cmd, *nfs, cols)
|
cliflag.SetUsageAndHelpFunc(cmd, *nfs, cols)
|
||||||
|
|
||||||
cmd.MarkFlagFilename("config", "yaml", "yml", "json")
|
if err := cmd.MarkFlagFilename("config", "yaml", "yml", "json"); err != nil {
|
||||||
|
klog.ErrorS(err, "Failed to mark flag filename")
|
||||||
|
}
|
||||||
|
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user