Documentation ¶
Index ¶
- func DeploymentNotExist(c *clients.Clients, namespace, name string) wait.ConditionFunc
- func EventListenerReady(c *clients.Clients, namespace, name string) wait.ConditionFunc
- func PipelineRunExist(c *clients.Clients, name string) wait.ConditionFunc
- func RouteNotExist(c *clients.Clients, namespace, name string) wait.ConditionFunc
- func ServiceNotExist(c *clients.Clients, namespace, name string) wait.ConditionFunc
- func WaitFor(ctx context.Context, waitFunc wait.ConditionFunc) error
- func WaitForDeploymentState(c *clients.Clients, name string, namespace string, ...) error
- func WaitForPipelineRunState(c *clients.Clients, name string, inState ConditionAccessorFn, desc string) error
- func WaitForPodState(c *clients.Clients, name string, namespace string, ...) error
- func WaitForPodsWithLabels(c *clients.Clients, namespace, labels string) wait.ConditionFunc
- func WaitForServiceExternalIPState(c *clients.Clients, namespace, name string, ...) error
- func WaitForTaskRunState(c *clients.Clients, name string, inState ConditionAccessorFn, desc string) error
- type ConditionAccessorFn
- func Failed(name string) ConditionAccessorFn
- func FailedWithMessage(message, name string) ConditionAccessorFn
- func FailedWithReason(reason, name string) ConditionAccessorFn
- func PipelineRunFailed(name string) ConditionAccessorFn
- func PipelineRunSucceed(name string) ConditionAccessorFn
- func Running(name string) ConditionAccessorFn
- func Succeed(name string) ConditionAccessorFn
- func TaskRunFailed(name string) ConditionAccessorFn
- func TaskRunSucceed(name string) ConditionAccessorFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeploymentNotExist ¶
func DeploymentNotExist(c *clients.Clients, namespace, name string) wait.ConditionFunc
DeploymentNotExist returns a function that checks if the specified Deployment does not exist
func EventListenerReady ¶
func EventListenerReady(c *clients.Clients, namespace, name string) wait.ConditionFunc
EventListenerReady returns a function that checks if all conditions on the specified EventListener are true and that the deployment available condition is within this set
func PipelineRunExist ¶
func PipelineRunExist(c *clients.Clients, name string) wait.ConditionFunc
PipelineRunExist returns a function that checks if the specified PipelineRun exists
func RouteNotExist ¶
func RouteNotExist(c *clients.Clients, namespace, name string) wait.ConditionFunc
RouteNotExist returns a function that checks if the specified Route does not exist
func ServiceNotExist ¶
func ServiceNotExist(c *clients.Clients, namespace, name string) wait.ConditionFunc
ServiceNotExist returns a function that checks if the specified Service does not exist
func WaitFor ¶
func WaitFor(ctx context.Context, waitFunc wait.ConditionFunc) error
WaitFor waits for the specified ConditionFunc every internal until the timeout.
func WaitForDeploymentState ¶
func WaitForDeploymentState(c *clients.Clients, name string, namespace string, inState func(d *appsv1.Deployment) (bool, error), desc string) error
WaitForDeploymentState polls the status of the Deployment called name from client every interval until inState returns `true` indicating it is done, returns an error or timeout. desc will be used to name the metric that is emitted to track how long it took for name to get into the state checked by inState.
func WaitForPipelineRunState ¶
func WaitForPipelineRunState(c *clients.Clients, name string, inState ConditionAccessorFn, desc string) error
WaitForPipelineRunState polls the status of the PipelineRun called name from client every interval until inState returns `true` indicating it is done, returns an error or timeout. desc will be used to name the metric that is emitted to track how long it took for name to get into the state checked by inState.
func WaitForPodState ¶
func WaitForPodState(c *clients.Clients, name string, namespace string, inState func(r *corev1.Pod) (bool, error), desc string) error
WaitForPodState polls the status of the Pod called name from client every interval until inState returns `true` indicating it is done, returns an error or timeout. desc will be used to name the metric that is emitted to track how long it took for name to get into the state checked by inState.
func WaitForPodsWithLabels ¶
func WaitForPodsWithLabels(c *clients.Clients, namespace, labels string) wait.ConditionFunc
func WaitForServiceExternalIPState ¶
func WaitForServiceExternalIPState(c *clients.Clients, namespace, name string, inState func(s *corev1.Service) (bool, error), desc string) error
WaitForServiceExternalIPState polls the status of the a k8s Service called name from client every interval until an external ip is assigned indicating it is done, returns an error or timeout. desc will be used to name the metric that is emitted to track how long it took for name to get into the state checked by inState.
func WaitForTaskRunState ¶
func WaitForTaskRunState(c *clients.Clients, name string, inState ConditionAccessorFn, desc string) error
WaitForTaskRunState polls the status of the TaskRun called name from client every interval until inState returns `true` indicating it is done, returns an error or timeout. desc will be used to name the metric that is emitted to track how long it took for name to get into the state checked by inState.
Types ¶
type ConditionAccessorFn ¶
type ConditionAccessorFn func(ca apis.ConditionAccessor) (bool, error)
ConditionAccessorFn is a condition function used polling functions
func Failed ¶
func Failed(name string) ConditionAccessorFn
Failed provides a poll condition function that checks if the ConditionAccessor resource has failed or not.
func FailedWithMessage ¶
func FailedWithMessage(message, name string) ConditionAccessorFn
FailedWithMessage provides a poll function that checks if the ConditionAccessor resource has failed with the TimeoudOut reason
func FailedWithReason ¶
func FailedWithReason(reason, name string) ConditionAccessorFn
FailedWithReason provides a poll function that checks if the ConditionAccessor resource has failed with the TimeoudOut reason
func PipelineRunFailed ¶
func PipelineRunFailed(name string) ConditionAccessorFn
PipelineRunFailed provides a poll condition function that checks if the PipelineRun has failed.
func PipelineRunSucceed ¶
func PipelineRunSucceed(name string) ConditionAccessorFn
PipelineRunSucceed provides a poll condition function that checks if the PipelineRun has successfully completed.
func Running ¶
func Running(name string) ConditionAccessorFn
Running provides a poll condition function that checks if the ConditionAccessor resource is currently running.
func Succeed ¶
func Succeed(name string) ConditionAccessorFn
Succeed provides a poll condition function that checks if the ConditionAccessor resource has successfully completed or not.
func TaskRunFailed ¶
func TaskRunFailed(name string) ConditionAccessorFn
TaskRunFailed provides a poll condition function that checks if the TaskRun has failed.
func TaskRunSucceed ¶
func TaskRunSucceed(name string) ConditionAccessorFn
TaskRunSucceed provides a poll condition function that checks if the TaskRun has successfully completed.