This commit is contained in:
2024-05-12 18:20:13 +03:00
parent eb27140756
commit 502552be32
6 changed files with 13 additions and 6 deletions

View File

@@ -2,6 +2,7 @@ package main
import (
"flag"
"fmt"
"kube-forge/internal/config"
"kube-forge/internal/kubespray"
"kube-forge/internal/templates"
@@ -32,12 +33,17 @@ func main() {
case "apply":
kubespray.InstallCluster("")
kubespray.CopyK8SAdminConfig("k8s-admin.conf")
return
case "apply-modules":
kubespray.InstallCluster("helm-apps")
return
case "upgrade":
kubespray.UpgradeCluster("")
return
case "scale":
kubespray.ScaleCluster()
return
}
}
fmt.Println("No such command\nAvailable commands: apply, apply-modules, upgrade, scale")
}