utils

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBootTime

func GetBootTime(c *kubernetes.Clientset, nodeName string, ns string, log logr.Logger) (*time.Time, error)

GetBootTime gets the boot time of the given node by running a pod on it executing uptime command

func GetControlPlaneNode added in v0.7.0

func GetControlPlaneNode(k8sClient ctrl.Client) *v1.Node

func GetWorkerNodes added in v0.7.0

func GetWorkerNodes(k8sClient ctrl.Client) []v1.Node

func MakeNodeUnready added in v0.7.0

func MakeNodeUnready(k8sClient ctrl.Client, clientSet *kubernetes.Clientset, node *v1.Node, namespace string, log logr.Logger) time.Time

func RunCommandInCluster added in v0.4.0

func RunCommandInCluster(c *kubernetes.Clientset, nodeName string, ns string, command string, log logr.Logger) (string, error)

RunCommandInCluster runs a command in a pod in the cluster and returns the output

func WaitForNodeHealthyCondition added in v0.7.0

func WaitForNodeHealthyCondition(k8sClient ctrl.Client, node *v1.Node, status v1.ConditionStatus) time.Time

Types

This section is empty.

Jump to

Keyboard shortcuts

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