mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
scheduler: don't leak offers if one out of many is incompatible
Fixes https://github.com/mesosphere/kubernetes-mesos/issues/636 Bugfix by @luckyfengyong
This commit is contained in:
@@ -242,7 +242,7 @@ func (s *offerStorage) Add(offers []*mesos.Offer) {
|
|||||||
offerId := offer.Id.GetValue()
|
offerId := offer.Id.GetValue()
|
||||||
log.V(3).Infof("Declining incompatible offer %v", offerId)
|
log.V(3).Infof("Declining incompatible offer %v", offerId)
|
||||||
s.declineOffer(offerId, offer.GetHostname(), metrics.OfferCompat)
|
s.declineOffer(offerId, offer.GetHostname(), metrics.OfferCompat)
|
||||||
return
|
continue
|
||||||
}
|
}
|
||||||
timed := &liveOffer{
|
timed := &liveOffer{
|
||||||
Offer: offer,
|
Offer: offer,
|
||||||
|
Reference in New Issue
Block a user