Documentation ¶
Overview ¶
Package periodicity dedicate the periodicity controller. This controller updates StatefulSets managed by our operator periodically. This is necessary when the pod admission webhook is used. Because we will deny pod deletion requests if the pod is not ready for deletion. However, retry duration on StatefulSet in its controller grows exponentially on failures. So we need to update StatefulSets to trigger events, then they will be put into the process queue of StatefulSet controller constantly. Refer to https://github.com/pingcap/tidb-operator/pull/1875 and https://github.com/pingcap/tidb-operator/issues/1846 for more details.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController( kubeCli kubernetes.Interface, informerFactory informers.SharedInformerFactory, kubeInformerFactory kubeinformers.SharedInformerFactory) *Controller
func (*Controller) Run ¶
func (c *Controller) Run(stopCh <-chan struct{})