@@ -46,21 +46,21 @@ type SchedulerConfig struct {
46
46
}
47
47
48
48
// WithPreSchedulePlugins sets the given plugins as the used PreSchedule plugins.
49
- // If the SchedulerConfig has PreSchedule plugins, this call repalces the existing plugins with the given ones.
49
+ // If the SchedulerConfig has PreSchedule plugins, this call replaces the existing plugins with the given ones.
50
50
func (c * SchedulerConfig ) WithPreSchedulePlugins (plugins ... plugins.PreSchedule ) * SchedulerConfig {
51
51
c .preSchedulePlugins = plugins
52
52
return c
53
53
}
54
54
55
55
// WithFilters sets the given filter plugins as the used Filter plugins.
56
- // if the SchedulerConfig has Filter plugins, this call repalces the existing plugins with the given ones.
56
+ // if the SchedulerConfig has Filter plugins, this call replaces the existing plugins with the given ones.
57
57
func (c * SchedulerConfig ) WithFilters (filters ... plugins.Filter ) * SchedulerConfig {
58
58
c .filters = filters
59
59
return c
60
60
}
61
61
62
62
// WithScorers sets the given scorer plugins as the used Scorer plugins.
63
- // if the SchedulerConfig has Scorer plugins, this call repalces the existing plugins with the given ones.
63
+ // if the SchedulerConfig has Scorer plugins, this call replaces the existing plugins with the given ones.
64
64
func (c * SchedulerConfig ) WithScorers (scorers ... * scorer.WeightedScorer ) * SchedulerConfig {
65
65
scorersMap := make (map [plugins.Scorer ]int , len (scorers ))
66
66
for _ , scorer := range scorers {
@@ -71,21 +71,21 @@ func (c *SchedulerConfig) WithScorers(scorers ...*scorer.WeightedScorer) *Schedu
71
71
}
72
72
73
73
// WithPicker sets the given picker plugins as the used Picker plugin.
74
- // if the SchedulerConfig has Picker plugin, this call repalces the existing plugin with the given one.
74
+ // if the SchedulerConfig has Picker plugin, this call replaces the existing plugin with the given one.
75
75
func (c * SchedulerConfig ) WithPicker (picker plugins.Picker ) * SchedulerConfig {
76
76
c .picker = picker
77
77
return c
78
78
}
79
79
80
80
// WithPostSchedulePlugins sets the given plugins as the used PostSchedule plugins.
81
- // If the SchedulerConfig has PostSchedule plugins, this call repalces the existing plugins with the given ones.
81
+ // If the SchedulerConfig has PostSchedule plugins, this call replaces the existing plugins with the given ones.
82
82
func (c * SchedulerConfig ) WithPostSchedulePlugins (plugins ... plugins.PostSchedule ) * SchedulerConfig {
83
83
c .postSchedulePlugins = plugins
84
84
return c
85
85
}
86
86
87
87
// WithPostResponsePlugins sets the given plugins as the used PostResponse plugins.
88
- // If the SchedulerConfig has PostResponse plugins, this call repalces the existing plugins with the given ones.
88
+ // If the SchedulerConfig has PostResponse plugins, this call replaces the existing plugins with the given ones.
89
89
func (c * SchedulerConfig ) WithPostResponsePlugins (plugins ... plugins.PostResponse ) * SchedulerConfig {
90
90
c .postResponsePlugins = plugins
91
91
return c
0 commit comments