resources

package
v0.0.0-...-b66af7b Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Interval specifies the time between two polls.
	Interval = 10 * time.Second
	// Timeout specifies the timeout for the function PollImmediate to reach a certain status.
	Timeout = 5 * time.Minute
)

Variables

This section is empty.

Functions

func CreateKnativeEventing

func CreateKnativeEventing(clients eventingv1alpha1.EventingInterface, names test.ResourceNames) (*v1alpha1.Eventing, error)

CreateKnativeEventing creates a KnativeServing with the name names.KnativeServing under the namespace names.Namespace.

func IsDeploymentAvailable

func IsDeploymentAvailable(d *v1.Deployment) (bool, error)

IsDeploymentAvailable will check the status conditions of the deployment and return true if the deployment is available.

func IsKnativeEventingReady

func IsKnativeEventingReady(s *v1alpha1.Eventing, err error) (bool, error)

IsKnativeEventingReady will check the status conditions of the KnativeServing and return true if the KnativeServing is ready.

func WaitForKnativeEventingState

func WaitForKnativeEventingState(clients eventingv1alpha1.EventingInterface, name string,
	inState func(s *v1alpha1.Eventing, err error) (bool, error)) (*v1alpha1.Eventing, error)

WaitForKnativeEventingState polls the status of the KnativeServing called name from client every `interval` until `inState` returns `true` indicating it is done, returns an error or timeout.

Types

This section is empty.

Jump to

Keyboard shortcuts

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