fix(clustertool): apply -> applyconfig

This commit is contained in:
Kjeld Schouten
2024-11-06 01:20:29 +01:00
parent 16c0e0c387
commit edc6f25840
+2 -2
View File
@@ -19,11 +19,11 @@ func GenApply(node string, extraFlags []string) []string {
for _, noderef := range talassist.TalConfig.Nodes { for _, noderef := range talassist.TalConfig.Nodes {
// TODO add extraFlags // TODO add extraFlags
filename := talassist.TalConfig.ClusterName + "-" + noderef.Hostname + ".yaml" filename := talassist.TalConfig.ClusterName + "-" + noderef.Hostname + ".yaml"
cmd := talosPath + " " + "apply" + " --talosconfig " + helper.TalosConfigFile + " -n " + noderef.IPAddress + " " + "--file=" + filepath.Join(helper.TalosGenerated, filename) cmd := talosPath + " " + "apply-config" + " --talosconfig " + helper.TalosConfigFile + " -n " + noderef.IPAddress + " " + "--file=" + filepath.Join(helper.TalosGenerated, filename)
commands = append(commands, cmd) commands = append(commands, cmd)
} }
} else { } else {
cmd := talosPath + " " + "apply" + " --talosconfig " + helper.TalosConfigFile + " -n " + node + " " cmd := talosPath + " " + "apply-config" + " --talosconfig " + helper.TalosConfigFile + " -n " + node + " "
commands = append(commands, cmd) commands = append(commands, cmd)
} }
return commands return commands