mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
e2e_node: factor out waitForKubeletToStart
Signed-off-by: Peter Hunt <pehunt@redhat.com>
This commit is contained in:
parent
e43003195d
commit
be7856e340
@ -233,7 +233,10 @@ func updateKubeletConfig(ctx context.Context, f *framework.Framework, kubeletCon
|
||||
|
||||
ginkgo.By("Starting the kubelet")
|
||||
startKubelet()
|
||||
waitForKubeletToStart(ctx, f)
|
||||
}
|
||||
|
||||
func waitForKubeletToStart(ctx context.Context, f *framework.Framework) {
|
||||
// wait until the kubelet health check will succeed
|
||||
gomega.Eventually(ctx, func() bool {
|
||||
return kubeletHealthCheck(kubeletHealthCheckURL)
|
||||
|
Loading…
Reference in New Issue
Block a user