wait

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// found by trial and error, no hard math behind, can change anytime
	DefaultPollInterval = 2 * time.Second
	DefaultPollTimeout  = 2 * time.Minute
)

Variables

This section is empty.

Functions

func AreDaemonSetPodsReady added in v0.10.0

func AreDaemonSetPodsReady(newStatus *appsv1.DaemonSetStatus) bool

func ForDaemonSetDeleted added in v0.10.0

func ForDaemonSetDeleted(cli client.Client, logger logr.Logger, namespace, name string, pollTimeout time.Duration) error

func ForDaemonSetReady added in v0.10.0

func ForDaemonSetReady(cli client.Client, logger logr.Logger, ds *appsv1.DaemonSet, pollInterval, pollTimeout time.Duration) (*appsv1.DaemonSet, error)

func ForDaemonSetReadyByKey added in v0.10.0

func ForDaemonSetReadyByKey(cli client.Client, logger logr.Logger, key ObjectKey, pollInterval, pollTimeout time.Duration) (*appsv1.DaemonSet, error)

func ForDeploymentComplete added in v0.10.0

func ForDeploymentComplete(cli client.Client, logger logr.Logger, dp *appsv1.Deployment, pollInterval, pollTimeout time.Duration) (*appsv1.Deployment, error)

func ForDeploymentCompleteByKey added in v0.10.0

func ForDeploymentCompleteByKey(cli client.Client, logger logr.Logger, key ObjectKey, replicas int32, pollInterval, pollTimeout time.Duration) (*appsv1.Deployment, error)

func ForDeploymentDeleted added in v0.10.0

func ForDeploymentDeleted(cli client.Client, logger logr.Logger, namespace, name string, pollTimeout time.Duration) error

func ForNamespaceDeleted added in v0.10.0

func ForNamespaceDeleted(cli client.Client, log logr.Logger, namespace string) error

Types

type ObjectKey added in v0.10.0

type ObjectKey struct {
	Namespace string
	Name      string
}

func ObjectKeyFromObject added in v0.10.0

func ObjectKeyFromObject(obj metav1.Object) ObjectKey

func (ObjectKey) AsKey added in v0.10.0

func (ok ObjectKey) AsKey() types.NamespacedName

func (ObjectKey) String added in v0.10.0

func (ok ObjectKey) String() string

Jump to

Keyboard shortcuts

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