Documentation ¶
Index ¶
- Constants
- func CreateKnativeEventing(clients eventingv1alpha1.EventingInterface, names test.ResourceNames) (*v1alpha1.Eventing, error)
- func IsDeploymentAvailable(d *v1.Deployment) (bool, error)
- func IsKnativeEventingReady(s *v1alpha1.Eventing, err error) (bool, error)
- func WaitForKnativeEventingState(clients eventingv1alpha1.EventingInterface, name string, ...) (*v1alpha1.Eventing, error)
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.