move cert-manager and ingress-nginx from kubespray to separate modules, remove reset action and update observability template
This commit is contained in:
@@ -8,21 +8,17 @@ import (
|
||||
"os"
|
||||
)
|
||||
|
||||
func parseArgs() (string, string, string, string) {
|
||||
var password string
|
||||
var configPath string
|
||||
var dataDir string
|
||||
var tags string
|
||||
func parseArgs() (string, string, string) {
|
||||
var password, configPath, dataDir string
|
||||
flag.StringVar(&password, "p", "", "Password to access hosts")
|
||||
flag.StringVar(&configPath, "c", "/etc/kube-forge/config.yaml", "Path to config file")
|
||||
flag.StringVar(&dataDir, "d", "/var/lib/kube-forge", "Path to data dir")
|
||||
flag.StringVar(&tags, "t", "", "List of tags to apply (ex: ingress,dns)")
|
||||
flag.Parse()
|
||||
return password, configPath, dataDir, tags
|
||||
return password, configPath, dataDir
|
||||
}
|
||||
|
||||
func main() {
|
||||
password, configPath, dataDir, tags := parseArgs()
|
||||
password, configPath, dataDir := parseArgs()
|
||||
config := config.CreateConfig(configPath, dataDir, password)
|
||||
|
||||
repositories, releases := templates.GetHelmAppsConfigData()
|
||||
@@ -34,12 +30,14 @@ func main() {
|
||||
for _, cmd := range os.Args {
|
||||
switch cmd {
|
||||
case "apply":
|
||||
kubespray.InstallCluster(tags)
|
||||
kubespray.InstallCluster("")
|
||||
kubespray.CopyK8SAdminConfig("k8s-admin.conf")
|
||||
case "reset":
|
||||
kubespray.ResetCluster()
|
||||
case "apply-modules":
|
||||
kubespray.InstallCluster("helm-apps")
|
||||
case "upgrade":
|
||||
kubespray.UpgradeCluster(tags)
|
||||
kubespray.UpgradeCluster("")
|
||||
case "scale":
|
||||
kubespray.ScaleCluster()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user