k8s

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteClusterNodes

func DeleteClusterNodes(nodes []string, clientset *kubernetes.Clientset, logger *logrus.Entry) error

func GetClientset

func GetClientset() (*kubernetes.Clientset, error)

getClientSet gets the k8s clientset

func NodesReady

func NodesReady(nodes []string, clientset *kubernetes.Clientset, logger *logrus.Entry) error

func WaitForNodeRunning

func WaitForNodeRunning(ctx context.Context, nodeName string, clientset *kubernetes.Clientset, logger *logrus.Entry) (*corev1.Node, error)

WaitForNodeRunning will poll a given kubernetes node at a regular interval for it to enter the 'Ready' state. If the node fails to become ready before the provided timeout then an error will be returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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