periodicity

package
v1.2.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

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(deps *controller.Dependencies) *Controller

func (*Controller) Run

func (c *Controller) Run(_ int, stopCh <-chan struct{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL