mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +00:00
Scheduler is not able to read from config file if configmap is not present
This commit is contained in:
parent
c471b6f946
commit
34d35f1304
@ -214,7 +214,7 @@ func (o *Options) applyDeprecatedHealthzPortToConfig() {
|
|||||||
// 3. --algorithm-provider to use a named algorithm provider.
|
// 3. --algorithm-provider to use a named algorithm provider.
|
||||||
func (o *Options) applyDeprecatedAlgorithmSourceOptionsToConfig() {
|
func (o *Options) applyDeprecatedAlgorithmSourceOptionsToConfig() {
|
||||||
switch {
|
switch {
|
||||||
case o.useLegacyPolicyConfig:
|
case o.useLegacyPolicyConfig || (len(o.policyConfigFile) > 0 && o.policyConfigMapName == ""):
|
||||||
o.config.AlgorithmSource = componentconfig.SchedulerAlgorithmSource{
|
o.config.AlgorithmSource = componentconfig.SchedulerAlgorithmSource{
|
||||||
Policy: &componentconfig.SchedulerPolicySource{
|
Policy: &componentconfig.SchedulerPolicySource{
|
||||||
File: &componentconfig.SchedulerPolicyFileSource{
|
File: &componentconfig.SchedulerPolicyFileSource{
|
||||||
|
Loading…
Reference in New Issue
Block a user