node

package
v0.17.6 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 8 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 K0sDynamicConfigReadyFunc

func K0sDynamicConfigReadyFunc(h *cluster.Host) retryFunc

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

func KubeAPIReadyFunc

func KubeAPIReadyFunc(h *cluster.Host, port int) retryFunc

KubeAPIReadyFunc returns a function that returns an error unless the host's local kube api responds to /version

func KubeNodeReadyFunc

func KubeNodeReadyFunc(h *cluster.Host) retryFunc

KubeNodeReady returns a function that returns an error unless the node is ready according to "kubectl get node"

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

func SystemPodsRunningFunc

func SystemPodsRunningFunc(h *cluster.Host) retryFunc

SystemPodsRunningFunc returns a function that returns an error unless all kube-system pods are running

Types

This section is empty.

Jump to

Keyboard shortcuts

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