This commit is contained in:
Pavel Sviderski
2024-09-11 16:10:36 +10:00
parent da72c0515a
commit c56f81bac2
+2
View File
@@ -354,6 +354,8 @@ func (m *Machine) InitCluster(ctx context.Context, req *pb.InitClusterRequest) (
slog.Info("Cluster initialised with machine.", "machine", m.state.Name) slog.Info("Cluster initialised with machine.", "machine", m.state.Name)
// Signal that the machine is initialised as a member of a cluster. // Signal that the machine is initialised as a member of a cluster.
m.initialised <- struct{}{} m.initialised <- struct{}{}
// TODO: consider calling a synchronous method to reconfigure the network to return error if it fails.
// Alternatively a client can call another method to check the network status.
resp := &pb.InitClusterResponse{ resp := &pb.InitClusterResponse{
Machine: addResp.Machine, Machine: addResp.Machine,