mirror of https://github.com/k3s-io/k3s
Update pkg/cluster/managed.go
Co-authored-by: Derek Nola <derek.nola@suse.com> Signed-off-by: Will Andrews <will7989@hotmail.com>pull/10647/head
parent
3ec086f6f7
commit
e2179aa957
|
@ -136,7 +136,7 @@ func (c *Cluster) setupEtcdProxy(ctx context.Context, etcdProxy etcd.Proxy) {
|
|||
return
|
||||
}
|
||||
// We use Poll here instead of Until because we want to wait the interval before running the function.
|
||||
go wait.PollUntilContextCancel(ctx, 30*time.Second, true, func(ctx context.Context) (bool, error) {
|
||||
go wait.PollUntilContextCancel(ctx, 30*time.Second, false, func(ctx context.Context) (bool, error) {
|
||||
clientURLs, err := c.managedDB.GetMembersClientURLs(ctx)
|
||||
if err != nil {
|
||||
logrus.Warnf("Failed to get etcd ClientURLs: %v", err)
|
||||
|
|
Loading…
Reference in New Issue