Files
kubernetes/contrib
Sergiusz Urbaniak 0ad0c1f2b1 scheduler: remove error param from doSchedule func
doSchedule currently accepts err values from previous invocation delegating
error handling in a location different from the caller which can be hard
to debug and is not a good practice.

We still maintain the same invariants after the refactoring. If an err
happened in a previous invocation to Register, the returned task object
was nil causing task.AcceptedOffer() to return false.

By not invoking doSchedule in case of an error we can eliminate the
first `err == nil` check in doScheduler.
2015-11-10 14:34:53 +01:00
..

Kubernetes Contrib is moving!

Checkout https://github.com/kubernetes/contrib for anything that is missing here!

Analytics