mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
Merge pull request #130067 from kerthcet/fix/readyz
Update the error log
This commit is contained in:
commit
3d342e9b74
@ -208,7 +208,7 @@ func Run(ctx context.Context, cc *schedulerserverconfig.CompletedConfig, sched *
|
|||||||
return nil
|
return nil
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
return fmt.Errorf("waiting for handlers to sync")
|
return fmt.Errorf("handlers are not fully synchronized")
|
||||||
})
|
})
|
||||||
readyzChecks = append(readyzChecks, handlerSyncCheck)
|
readyzChecks = append(readyzChecks, handlerSyncCheck)
|
||||||
|
|
||||||
@ -266,7 +266,7 @@ func Run(ctx context.Context, cc *schedulerserverconfig.CompletedConfig, sched *
|
|||||||
|
|
||||||
// Wait for all handlers to sync (all items in the initial list delivered) before scheduling.
|
// Wait for all handlers to sync (all items in the initial list delivered) before scheduling.
|
||||||
if err := sched.WaitForHandlersSync(ctx); err != nil {
|
if err := sched.WaitForHandlersSync(ctx); err != nil {
|
||||||
logger.Error(err, "waiting for handlers to sync")
|
logger.Error(err, "handlers are not fully synchronized")
|
||||||
}
|
}
|
||||||
|
|
||||||
close(handlerSyncReadyCh)
|
close(handlerSyncReadyCh)
|
||||||
|
Loading…
Reference in New Issue
Block a user