feat: implement scheduler-k3s:initialize

This commit is contained in:
Jose Diaz-Gonzalez
2024-01-12 02:25:22 -05:00
parent d6824c44c7
commit ec538ce1c5
8 changed files with 129 additions and 7 deletions

View File

@@ -18,6 +18,7 @@ Manage scheduler-k3s settings for an app
Additional commands:`
helpContent = `
scheduler-k3s:initialize, Initializes a cluster
scheduler-k3s:report [<app>] [<flag>], Displays a scheduler-k3s report for one or more apps
scheduler-k3s:set <app> <property> (<value>), Set or clear a scheduler-k3s property for an app
`

View File

@@ -18,6 +18,10 @@ func main() {
var err error
switch subcommand {
case "initialize":
args := flag.NewFlagSet("scheduler-k3s:initialize", flag.ExitOnError)
args.Parse(os.Args[2:])
err = scheduler_k3s.CommandInitialize()
case "report":
args := flag.NewFlagSet("scheduler-k3s:report", flag.ExitOnError)
format := args.String("format", "stdout", "format: [ stdout | json ]")