Scheduler version should be printed out by default

This commit is contained in:
wangyamei 2021-09-01 15:18:38 +08:00
parent 7a0638da76
commit 50865679b9

View File

@ -138,7 +138,7 @@ func runCommand(cmd *cobra.Command, opts *options.Options, registryOptions ...Op
// Run executes the scheduler based on the given configuration. It only returns on error or when context is done.
func Run(ctx context.Context, cc *schedulerserverconfig.CompletedConfig, sched *scheduler.Scheduler) error {
// To help debugging, immediately log version
klog.V(1).InfoS("Starting Kubernetes Scheduler version", "version", version.Get())
klog.InfoS("Starting Kubernetes Scheduler", "version", version.Get())
// Configz registration.
if cz, err := configz.New("componentconfig"); err == nil {