HA working with k0s too

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
This commit is contained in:
Mauro Morales
2025-03-21 23:29:16 +01:00
parent b2a3963a5e
commit 0d18f69c1c
4 changed files with 33 additions and 5 deletions

View File

@@ -260,6 +260,11 @@ func (k *K3sWorker) Args() ([]string, error) {
return args, nil
}
func (k *K3sControlPlane) SetupHAToken() error {
// K3s doesn't need a token for HA, it uses the node-token
return nil
}
func (k *K3sWorker) SetupWorker(controlPlaneIP, nodeToken string) error {
pconfig := k.ProviderConfig()