Merge pull request #68917 from zhangmingld/fixwordserr

Fix some typo err
pull/58/head
k8s-ci-robot 2018-09-26 22:59:32 -07:00 committed by GitHub
commit 823530d4db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -205,7 +205,7 @@ func (o *Options) Config() (*schedulerappconfig.Config, error) {
return nil, err return nil, err
} }
// prepare kube clients. // Prepare kube clients.
client, leaderElectionClient, eventClient, err := createClients(c.ComponentConfig.ClientConnection, o.Master, c.ComponentConfig.LeaderElection.RenewDeadline.Duration) client, leaderElectionClient, eventClient, err := createClients(c.ComponentConfig.ClientConnection, o.Master, c.ComponentConfig.LeaderElection.RenewDeadline.Duration)
if err != nil { if err != nil {
return nil, err return nil, err

View File

@ -130,7 +130,7 @@ type configFactory struct {
// Handles volume binding decisions // Handles volume binding decisions
volumeBinder *volumebinder.VolumeBinder volumeBinder *volumebinder.VolumeBinder
// always check all predicates even if the middle of one predicate fails. // Always check all predicates even if the middle of one predicate fails.
alwaysCheckAllPredicates bool alwaysCheckAllPredicates bool
// Disable pod preemption or not. // Disable pod preemption or not.
@ -161,7 +161,7 @@ type ConfigFactoryArgs struct {
BindTimeoutSeconds int64 BindTimeoutSeconds int64
} }
// NewConfigFactory initializes the default implementation of a Configurator To encourage eventual privatization of the struct type, we only // NewConfigFactory initializes the default implementation of a Configurator. To encourage eventual privatization of the struct type, we only
// return the interface. // return the interface.
func NewConfigFactory(args *ConfigFactoryArgs) scheduler.Configurator { func NewConfigFactory(args *ConfigFactoryArgs) scheduler.Configurator {
stopEverything := make(chan struct{}) stopEverything := make(chan struct{})

View File

@ -186,7 +186,7 @@ func (sched *Scheduler) Run() {
go wait.Until(sched.scheduleOne, 0, sched.config.StopEverything) go wait.Until(sched.scheduleOne, 0, sched.config.StopEverything)
} }
// Config return scheduler's config pointer. It is exposed for testing purposes. // Config returns scheduler's config pointer. It is exposed for testing purposes.
func (sched *Scheduler) Config() *Config { func (sched *Scheduler) Config() *Config {
return sched.config return sched.config
} }