Documentation ¶
Index ¶
- func GetBootTime(c *kubernetes.Clientset, nodeName string, ns string, log logr.Logger) (*time.Time, error)
- func GetControlPlaneNode(k8sClient ctrl.Client) *v1.Node
- func GetWorkerNodes(k8sClient ctrl.Client) []v1.Node
- func MakeNodeUnready(k8sClient ctrl.Client, clientSet *kubernetes.Clientset, node *v1.Node, ...) time.Time
- func RunCommandInCluster(c *kubernetes.Clientset, nodeName string, ns string, command string, ...) (string, error)
- func WaitForNodeHealthyCondition(k8sClient ctrl.Client, node *v1.Node, status v1.ConditionStatus) time.Time
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 MakeNodeUnready ¶ added in v0.7.0
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.