Documentation ¶
Index ¶
- func HTTPStatusFunc(h *cluster.Host, url string, expected ...int) retryFunc
- func K0sDynamicConfigReadyFunc(h *cluster.Host) retryFunc
- func KubeAPIReadyFunc(h *cluster.Host, port int) retryFunc
- func KubeNodeReadyFunc(h *cluster.Host) retryFunc
- func ScheduledEventsAfterFunc(h *cluster.Host, since time.Time) retryFunc
- func ServiceRunningFunc(h *cluster.Host, service string) retryFunc
- func ServiceStoppedFunc(h *cluster.Host, service string) retryFunc
- func SystemPodsRunningFunc(h *cluster.Host) retryFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPStatusFunc ¶
HTTPStatus returns a function that returns an error unless the expected status code is returned for a HTTP get to the url
func K0sDynamicConfigReadyFunc ¶
K0sDynamicConfigReadyFunc returns a function that returns an error unless the k0s dynamic config has been reconciled
func KubeAPIReadyFunc ¶
KubeAPIReadyFunc returns a function that returns an error unless the host's local kube api responds to /version
func KubeNodeReadyFunc ¶
KubeNodeReady returns a function that returns an error unless the node is ready according to "kubectl get node"
func ScheduledEventsAfterFunc ¶
ScheduledEventsAfterFunc returns a function that returns an error unless a kube-system 'Scheduled' event has occurred after the given time The returned function is intended to be used with pkg/retry.
func ServiceRunningFunc ¶
ServiceRunningFunc returns a function that returns an error until the service is running on the host
func ServiceStoppedFunc ¶
ServiceStoppedFunc returns a function that returns an error if the service is not running on the host
func SystemPodsRunningFunc ¶
SystemPodsRunningFunc returns a function that returns an error unless all kube-system pods are running
Types ¶
This section is empty.