fix(scheduler): sku predicate with empty zone id (#23684)

This commit is contained in:
屈轩
2025-11-04 20:56:20 +08:00
committed by GitHub
parent 04de29158a
commit ae8697132b
@@ -68,7 +68,7 @@ func (p *InstanceTypePredicate) Execute(ctx context.Context, u *core.Unit, c cor
zoneMatch := false
for idx := range skus {
sku := skus[idx]
if sku.ZoneId == zoneId {
if len(sku.ZoneId) == 0 || sku.ZoneId == zoneId {
zoneMatch = true
break
}