Documentation
¶
Index ¶
- func CheckNoReboot(ctx context.Context, c *kubernetes.Clientset, node *corev1.Node, ...)
- func CheckReboot(ctx context.Context, c *kubernetes.Clientset, node *corev1.Node, ...)
- func GetBootTime(ctx context.Context, c *kubernetes.Clientset, node *corev1.Node, ...) (*time.Time, error)
- func GetLogs(c *kubernetes.Clientset, pod *corev1.Pod, since *metav1.Time) (string, error)
- func RunCommandInCluster(ctx context.Context, c *kubernetes.Clientset, nodeName string, ns string, ...) (string, error)
- func RunCommandInPod(ctx context.Context, c *kubernetes.Clientset, pod *corev1.Pod, command string) (string, error)
- func WaitForPodReady(c client.Client, pod *corev1.Pod)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckNoReboot ¶ added in v0.10.0
func CheckReboot ¶ added in v0.10.0
func GetBootTime ¶ added in v0.10.0
func GetBootTime(ctx context.Context, c *kubernetes.Clientset, node *corev1.Node, testNamespace string) (*time.Time, error)
GetBootTime gets the boot time of the given node by running a pod on it executing uptime command
func RunCommandInCluster ¶ added in v0.10.0
func RunCommandInCluster(ctx context.Context, c *kubernetes.Clientset, nodeName string, ns string, command string) (string, error)
RunCommandInCluster runs a command in a new pod in the cluster and returns the output
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.