wait

package
v0.28.10 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CRDEstablishedConditionCheck

func CRDEstablishedConditionCheck(obj runtime.Object, k8serror error) bool

func ExistsConditionCheck

func ExistsConditionCheck(obj runtime.Object, k8serror error) bool

func GetFormattedName

func GetFormattedName(name, namespace string, gvk schema.GroupVersionKind) string

func NonExistsConditionCheck

func NonExistsConditionCheck(obj runtime.Object, k8serror error) bool

func ReadyReplicasConditionCheck

func ReadyReplicasConditionCheck(obj runtime.Object, k8serror error) bool

Types

type Backoff

type Backoff = wait.Backoff

type CustomResourceConditionCheck

type CustomResourceConditionCheck func() (bool, error)

type ResourceConditionCheck

type ResourceConditionCheck func(runtime.Object, error) bool

type ResourceConditionChecks

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

func NewResourceConditionChecks

func NewResourceConditionChecks(client client.Client, backoff Backoff, log logr.Logger, scheme *runtime.Scheme) *ResourceConditionChecks

func (*ResourceConditionChecks) WaitForCustomConditionChecks

func (c *ResourceConditionChecks) WaitForCustomConditionChecks(id string, checkFuncs ...CustomResourceConditionCheck) error

func (*ResourceConditionChecks) WaitForResources

func (c *ResourceConditionChecks) WaitForResources(id string, objects []runtime.Object, checkFuncs ...ResourceConditionCheck) error

Jump to

Keyboard shortcuts

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