Documentation
¶
Index ¶
- Constants
- func CreateKnativeServing(clients servingv1alpha1.KnativeServingInterface, names test.ResourceNames) (*v1alpha1.KnativeServing, error)
- func IsDeploymentAvailable(d *v1.Deployment) (bool, error)
- func IsKnativeServingReady(s *v1alpha1.KnativeServing, err error) (bool, error)
- func WaitForConfigMap(name string, client *kubernetes.Clientset, fn func(map[string]string) bool) error
- func WaitForKnativeServingState(clients servingv1alpha1.KnativeServingInterface, name string, ...) (*v1alpha1.KnativeServing, 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 CreateKnativeServing ¶
func CreateKnativeServing(clients servingv1alpha1.KnativeServingInterface, names test.ResourceNames) (*v1alpha1.KnativeServing, error)
CreateKnativeServing 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 IsKnativeServingReady ¶
func IsKnativeServingReady(s *v1alpha1.KnativeServing, err error) (bool, error)
IsKnativeServingReady will check the status conditions of the KnativeServing and return true if the KnativeServing is ready.
func WaitForConfigMap ¶
func WaitForConfigMap(name string, client *kubernetes.Clientset, fn func(map[string]string) bool) error
WaitForConfigMap takes a condition function that evaluates ConfigMap data
func WaitForKnativeServingState ¶
func WaitForKnativeServingState(clients servingv1alpha1.KnativeServingInterface, name string, inState func(s *v1alpha1.KnativeServing, err error) (bool, error)) (*v1alpha1.KnativeServing, error)
WaitForKnativeServingState 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.