condition

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package condition provides strategies for waiting for infrastructure to reach a desired state through conditional predicates.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterHasReadyNode

func ClusterHasReadyNode(ctx context.Context, clientset kubernetes.Clientset) (bool, error)

ClusterHasReadyNode is a ClusterConditionFunc which polls for at least one node to have the condition NodeReady=True.

Types

type ClusterConditionFunc

type ClusterConditionFunc func(context.Context, kubernetes.Clientset) (bool, error)

ClusterConditionFunc represents a function that tests a condition against an LKE cluster, returns true if the condition has been reached, false if it has not yet been reached.

Jump to

Keyboard shortcuts

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