periodicity

package
v1.1.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: Apache-2.0 Imports: 13 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(
	kubeCli kubernetes.Interface,
	informerFactory informers.SharedInformerFactory,
	kubeInformerFactory kubeinformers.SharedInformerFactory) *Controller

func (*Controller) Run

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

Jump to

Keyboard shortcuts

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