Documentation
¶
Index ¶
- func HTTPStatusFunc(h *cluster.Host, url string, expected ...int) retryFunc
- func IsConnectionError(err error) bool
- func K0sDynamicConfigReadyFunc(h *cluster.Host) 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
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 IsConnectionError ¶ added in v0.29.0
IsConnectionError reports whether err (or any error in its chain) indicates a lost SSH or transport connection, so callers can disconnect and reconnect before retrying.
func K0sDynamicConfigReadyFunc ¶
K0sDynamicConfigReadyFunc returns a function that returns an error unless the k0s dynamic config has been reconciled
func KubeNodeReadyFunc ¶
KubeNodeReadyFunc returns a function that returns an error unless the node is ready according to "kubectl get node". On connection loss (e.g. SSH session dropped) it disconnects and reconnects so the next retry uses a fresh connection.
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
Types ¶
This section is empty.