node

package
v0.29.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPStatusFunc

func HTTPStatusFunc(h *cluster.Host, url string, expected ...int) retryFunc

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

func IsConnectionError(err error) bool

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

func K0sDynamicConfigReadyFunc(h *cluster.Host) retryFunc

K0sDynamicConfigReadyFunc returns a function that returns an error unless the k0s dynamic config has been reconciled

func KubeNodeReadyFunc

func KubeNodeReadyFunc(h *cluster.Host) retryFunc

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

func ScheduledEventsAfterFunc(h *cluster.Host, since time.Time) retryFunc

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

func ServiceRunningFunc(h *cluster.Host, service string) retryFunc

ServiceRunningFunc returns a function that returns an error until the service is running on the host

func ServiceStoppedFunc

func ServiceStoppedFunc(h *cluster.Host, service string) retryFunc

ServiceStoppedFunc returns a function that returns an error if the service is not running on the host

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL