fix: scheduler options not updated by OptionManager

This commit is contained in:
Qiu Jian
2022-06-16 21:24:19 +08:00
parent b6f80536c7
commit 1aee43ab03
15 changed files with 65 additions and 65 deletions

View File

@@ -27,7 +27,7 @@ type BasePredicate struct {
}
func (p *BasePredicate) PreExecute(ctx context.Context, u *core.Unit, cs []core.Candidater) (bool, error) {
if o.GetOptions().DisableBaremetalPredicates {
if o.Options.DisableBaremetalPredicates {
return false, nil
}
return true, nil

View File

@@ -37,7 +37,7 @@ func (p *SQuotaPredicate) Clone() core.FitPredicate {
}
func (p *SQuotaPredicate) PreExecute(ctx context.Context, u *core.Unit, cs []core.Candidater) (bool, error) {
if !options.GetOptions().EnableQuotaCheck {
if !options.Options.EnableQuotaCheck {
return false, nil
}
if len(u.SchedData().HostId) > 0 {