You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/scheduler/app/options/options.go
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -93,6 +93,10 @@ type ServerOption struct {
93
93
// not be counted in pod pvc resource request and node.Allocatable, because the spec.drivers of csinode resource
94
94
// is always null, these provisioners usually are host path csi controllers like rancher.io/local-path and hostpath.csi.k8s.io.
95
95
IgnoredCSIProvisioners []string
96
+
97
+
// DisableDefaultSchedulerConfig indicates if the scheduler should fallback to default
98
+
// config if the current scheduler config is invalid
99
+
DisableDefaultSchedulerConfigbool
96
100
}
97
101
98
102
// DecryptFunc is custom function to parse ca file
@@ -151,6 +155,7 @@ func (s *ServerOption) AddFlags(fs *pflag.FlagSet) {
151
155
fs.StringVar(&s.CacheDumpFileDir, "cache-dump-dir", "/tmp", "The target dir where the json file put at when dump cache info to json file")
152
156
fs.Uint32Var(&s.NodeWorkerThreads, "node-worker-threads", defaultNodeWorkers, "The number of threads syncing node operations.")
153
157
fs.StringSliceVar(&s.IgnoredCSIProvisioners, "ignored-provisioners", nil, "The provisioners that will be ignored during pod pvc request computation and preemption.")
158
+
fs.BoolVar(&s.DisableDefaultSchedulerConfig, "disable-default-scheduler-config", false, "The flag indicates whether the scheduler should avoid using the default configuration if the provided scheduler configuration is invalid.")
154
159
}
155
160
156
161
// CheckOptionOrDie check leader election flag when LeaderElection is enabled.
0 commit comments