wait

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDaemonSet

func CheckDaemonSet(daemon *appsv1.DaemonSet) error

CheckDaemonSet inspects a daemon set for stability

func CheckDeployment

func CheckDeployment(deployment *appsv1.Deployment) error

CheckDeployment inspects a deployment for stability

func CheckPods

func CheckPods(list *corev1.PodList) error

CheckPods inspects a pod list for stability

func CheckStatefulSet

func CheckStatefulSet(sts *appsv1.StatefulSet) error

CheckStatefulSet inspects a stateful set for stability

Types

type StabilityError

type StabilityError struct {
	// The reason for the stability error
	Reason string
	// The object on which the stability problem was detected
	TargetRef corev1.ObjectReference
	// The minimum amount of time until the object is expected to stabilize, if left unspecified there is no expectation of stability
	RetryAfter time.Duration
}

StabilityError indicates that the cluster has not reached a sufficiently stable state

func (*StabilityError) Error

func (e *StabilityError) Error() string

Error returns the summary about why the stability check failed

Jump to

Keyboard shortcuts

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