From 33d54132edf05a86849ade7c8f60defbdfcf6f14 Mon Sep 17 00:00:00 2001 From: iwilltry42 Date: Wed, 8 Apr 2020 17:52:24 +0200 Subject: [PATCH] add arbitrary sleep to avoid master registering race conditions --- pkg/cluster/cluster.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/cluster/cluster.go b/pkg/cluster/cluster.go index 4e1db6df..209259ac 100644 --- a/pkg/cluster/cluster.go +++ b/pkg/cluster/cluster.go @@ -191,6 +191,7 @@ initNodeFinished: for _, node := range cluster.Nodes { if node.Role == k3d.MasterRole { + time.Sleep(1) // FIXME: arbitrary wait for one second to avoid race conditions of masters registering // skip the init node here if node == cluster.InitNode { continue