update: Added Longhorn installation process and updated memory allocation for VMs
update: Added 'git' and 'vagrant' to required tools in pre-flight checks fix: configured k3s install to use internal nic for flanel network update: Added Longhorn installation process and updated memory allocation for VMs update: Added 'git' and 'vagrant' to required tools in pre-flight checks fix: configured k3s install to use internal nic for flanel network fix: corrected JSON formatting for config json update: reduce VM memory allocation to 2GB, add Longhorn installation scripts and prerequisites, and implement checks for existing pods update: improve error logging in RunJsonDeployment and RunCommand functions update: add jq installation to provision script update: add version flag
This commit is contained in:
parent
d839fd5687
commit
636a0494ac
20 changed files with 385 additions and 21 deletions
|
|
@ -7,6 +7,8 @@ import (
|
|||
"os"
|
||||
)
|
||||
|
||||
const Version = "v0.0.4"
|
||||
|
||||
type BaseConfig struct {
|
||||
ProjectsDirectory string `json:"projects_directory"`
|
||||
Env string `json:"env"`
|
||||
|
|
@ -38,6 +40,8 @@ func ReadBaseConfig(path string) (BaseConfig, error) {
|
|||
deploymentFileShorthand := flag.String("f", "", "shorthand for -deployment-file")
|
||||
|
||||
helpFlag := flag.Bool("help", false, "show help")
|
||||
versionFlag := flag.Bool("version", false, "show version")
|
||||
vFlag := flag.Bool("v", false, "show version (shorthand)")
|
||||
flag.Parse()
|
||||
|
||||
if *helpFlag {
|
||||
|
|
@ -46,6 +50,12 @@ func ReadBaseConfig(path string) (BaseConfig, error) {
|
|||
os.Exit(0)
|
||||
}
|
||||
|
||||
// Handle version flags
|
||||
if *versionFlag || *vFlag {
|
||||
fmt.Println("infctl-cli version:", Version)
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
var config BaseConfig
|
||||
if *deploymentFileShorthand != "" {
|
||||
config.DeploymentFile = *deploymentFileShorthand
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue