add supported k8s version check
This commit is contained in:
@@ -3,6 +3,7 @@ package config
|
||||
import (
|
||||
"fmt"
|
||||
"kube-forge/internal/files"
|
||||
"kube-forge/internal/logging"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/ilyakaznacheev/cleanenv"
|
||||
@@ -72,6 +73,11 @@ func createConfig(configFile string, out string, password string, verbose bool)
|
||||
}
|
||||
|
||||
instance.Verbose = verbose
|
||||
|
||||
err := validateConfig(*instance)
|
||||
if err != nil {
|
||||
logging.Log.Fatal(err.Error())
|
||||
}
|
||||
return instance
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user