feat: add command to add or remove auth configurations
This commit is contained in:
1 parent
0cb47f1c54
commit
3bd61d8c7f
4 files changed
+38
-1
No files matched your search
@@ -34,6 +34,14 @@ func main() {
|
||||
}
|
||||
|
||||
err = scheduler_k3s.CommandAnnotationsSet(appName, *processType, *resourceType, property, value)
|
||||
case "autoscaling-auth:set":
|
||||
args := flag.NewFlagSet("scheduler-k3s:autoscaling-auth:set", flag.ExitOnError)
|
||||
global := args.Bool("global", false, "--global: set a global property")
|
||||
metadata := args.StringToString("metadata", map[string]string{}, "--metadata: a key=value map of parameter metadata")
|
||||
args.Parse(os.Args[2:])
|
||||
appName := args.Arg(0)
|
||||
trigger := args.Arg(1)
|
||||
err = scheduler_k3s.CommandAutoscalingAuthSet(appName, trigger, *metadata, *global)
|
||||
case "cluster-add":
|
||||
args := flag.NewFlagSet("scheduler-k3s:cluster-add", flag.ExitOnError)
|
||||
allowUknownHosts := args.Bool("insecure-allow-unknown-hosts", false, "insecure-allow-unknown-hosts: allow unknown hosts")
|
||||
|
||||
Reference in new issue
Block a user