disruption

package
v1.5.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2016 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const DeletionTimeout = 2 * 60 * time.Second

DeletionTimeout sets maximum time from the moment a pod is added to DisruptedPods in PDB.Status to the time when the pod is expected to be seen by PDB controller as having been marked for deletion. If the pod was not marked for deletion during that time it is assumed that it won't be deleted at all and the corresponding entry can be removed from pdb.Status.DisruptedPods. It is assumed that pod/pdb apiserver to controller latency is relatively small (like 1-2sec) so the below value should be more than enough. If the cotroller is running on a different node it is important that the two nodes have synced clock (via ntp for example). Otherwise PodDisruptionBudget controller may not provide enough protection against unwanted pod disruptions.

Variables

This section is empty.

Functions

This section is empty.

Types

type DisruptionController

type DisruptionController struct {
	// contains filtered or unexported fields
}

func NewDisruptionController

func NewDisruptionController(podInformer cache.SharedIndexInformer, kubeClient internalclientset.Interface) *DisruptionController

func (*DisruptionController) Run

func (dc *DisruptionController) Run(stopCh <-chan struct{})

Jump to

Keyboard shortcuts

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