add supported k8s version check

This commit is contained in:
2025-08-09 17:00:02 +03:00
parent 5e8b03ff10
commit 5466c3e36f
4 changed files with 57 additions and 8 deletions

View File

@@ -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
}