kube-scheduler: log the unhandled error

Signed-off-by: cyclinder <qifeng.guo@daocloud.io>
This commit is contained in:
cyclinder 2022-01-07 18:21:11 +08:00
parent 2af53e9f64
commit 1a16de783b

View File

@ -100,7 +100,9 @@ for more information about scheduling and the kube-scheduler component.`,
cols, _, _ := term.TerminalSize(cmd.OutOrStdout())
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
}