// StartPodLogs begins capturing log output and events from current // and future pods running in the namespace of the framework. That // ends when the returned cleanup function is called. // // The output goes to log files (when using --report-dir, as in the // CI) or the output stream (otherwise). func StartPodLogs(ctx context.Context, f *framework.Framework, driverNamespace *v1.Namespace) func() { … } // KubeletCommand performs `start`, `restart`, or `stop` on the kubelet running on the node of the target pod and waits // for the desired statues.. // Allowed kubeletOps are `KStart`, `KStop`, and `KRestart` func KubeletCommand(ctx context.Context, kOp KubeletOpt, c clientset.Interface, pod *v1.Pod) { … } // getHostAddress gets the node for a pod and returns the first // address. Returns an error if the node the pod is on doesn't have an // address. func getHostAddress(ctx context.Context, client clientset.Interface, p *v1.Pod) (string, error) { … }