k3s/pkg/controller/history
Ryan McNamara 0aae852a3c Stably sort controllerrevisions
Fixes https://github.com/kubernetes/kubernetes/issues/61998

There are times when multiple "equal" controllerrevisions are created with
the same revision number. When this happens and this is the case for the
largest revision number, the statefulset controller will periodically
select one of the maximal controllerrevisions to be the target of the
underlying statefulset. The selection happens here: https://github.com/kubernetes/kubernetes/blob/master/pkg/controller/statefulset/stateful_set_control.go#L212.
Prior to this change this selection was random as the sort was not
stable, which caused the pods of a stable set to continually roll.
2018-11-05 16:01:05 -08:00
..
BUILD Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
OWNERS Add Labels to various OWNERS files 2018-08-21 13:59:08 -04:00
controller_history.go Stably sort controllerrevisions 2018-11-05 16:01:05 -08:00
controller_history_test.go Stably sort controllerrevisions 2018-11-05 16:01:05 -08:00