Add version logging to kube-scheduler

Related to: #27744
This commit is contained in:
Palash Nigam 2019-01-20 00:50:55 +05:30
parent 26d58d37a7
commit e0bbce2a8a
No known key found for this signature in database
GPG Key ID: 0A6CADDD47E06442

View File

@ -156,6 +156,9 @@ func runCommand(cmd *cobra.Command, args []string, opts *options.Options) error
// Run executes the scheduler based on the given configuration. It only return on error or when stopCh is closed.
func Run(cc schedulerserverconfig.CompletedConfig, stopCh <-chan struct{}) error {
// To help debugging, immediately log version
klog.V(1).Infof("Starting Kubernetes Scheduler version %+v", version.Get())
// Create the scheduler.
sched, err := scheduler.New(cc.Client,
cc.InformerFactory.Core().V1().Nodes(),