Merge pull request #104708 from mysunshine92/scheduler-log

Scheduler version should be printed out by default(--v=0)
This commit is contained in:
Kubernetes Prow Robot 2021-09-02 13:53:47 -07:00 committed by GitHub
commit 495cf6898f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {