mirror of https://github.com/k3s-io/k3s
Scheduler is not able to read from config file if configmap is not present
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