mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-06-07 23:09:17 +08:00
fix: scheduler options not updated by OptionManager
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user