kubernetes/pkg/controller/daemon/util
Clayton Coleman 9f296c133d
daemonset: Simplify the logic for calculating unavailable pods
In order to maintain the correct invariants, the existing maxUnavailable
logic calculated the same data several times in different ways. Leverage
the simpler structure from maxSurge and calculate pod availability only
once, as well as perform only a single pass over all the pods in the
daemonset. This changed no behavior of the current controller, and
has a structure that is almost identical to maxSurge.
2021-03-01 13:23:16 -05:00
..
daemonset_util_test.go Scheduler: remove pkg/apis/core/field_constants.go 2021-02-24 18:06:29 +08:00
daemonset_util.go daemonset: Simplify the logic for calculating unavailable pods 2021-03-01 13:23:16 -05:00