commit before using cursor

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
This commit is contained in:
Mauro Morales
2025-03-26 10:04:10 +01:00
parent bdd7909d05
commit 65e49b898b
7 changed files with 43 additions and 25 deletions

View File

@@ -33,10 +33,10 @@ func scheduleRoles(nodes []string, c *service.RoleConfig, cc *config.Config, pco
hasControlPlane := false
controlPlaneRole := "master"
controlPlaneRole := RoleControlPlane
if pconfig.P2P.Auto.HA.IsEnabled() {
controlPlaneRole = "master/clusterinit"
controlPlaneRole = RoleControlPlaneClusterInit
}
controlPlaneCounter := 1 // Start at 1 to account for the init node
@@ -79,7 +79,7 @@ func scheduleRoles(nodes []string, c *service.RoleConfig, cc *config.Config, pco
c.Logger.Infof("-> Set %s to %s", controlPlaneRole, selected)
currentRoles[selected] = controlPlaneRole
// Return here, so next time we get called
// makes sure master is set.
// makes sure control-plane is set.
return nil
}