Wait for the tailscale clients to be ready in the web auth CreateHeadscaleEnv

Signed-off-by: Juan Font Alonso <juanfontalonso@gmail.com>
This commit is contained in:
Juan Font Alonso 2022-11-13 13:12:32 +01:00
parent f176503448
commit ad3c36fd07

View File

@ -129,6 +129,12 @@ func (s *AuthWebFlowScenario) runTailscaleUp(
if err != nil {
log.Printf("failed to register client: %s", err)
}
err = c.WaitForReady()
if err != nil {
log.Printf("error waiting for client %s to be ready: %s", c.Hostname(), err)
}
}(client)
}
namespace.joinWaitGroup.Wait()