Add managed namespace wiki reset deploy
This commit is contained in:
+5
-1
@@ -1950,8 +1950,10 @@ func parseDeployWikiArgs(commandName string, args []string) (topdata.DeployWikiO
|
||||
opts.Force = true
|
||||
case "--create":
|
||||
opts.AllowCreates = true
|
||||
case "--reset-managed-namespaces":
|
||||
opts.ResetManagedNamespaces = true
|
||||
case "-h", "--help":
|
||||
return opts, fmt.Errorf("usage: %s [--source-dir <path>] [--endpoint <url>] [--token <token>] [--version <ver>] [--namespace <ns> ...] [--category <namespace=cid> ...] [--manifest <path>] [--stale-policy <report|archive|purge>] [--dry-run] [--create] [--force]", commandName)
|
||||
return opts, fmt.Errorf("usage: %s [--source-dir <path>] [--endpoint <url>] [--token <token>] [--version <ver>] [--namespace <ns> ...] [--category <namespace=cid> ...] [--manifest <path>] [--stale-policy <report|archive|purge>] [--dry-run] [--create] [--force] [--reset-managed-namespaces]", commandName)
|
||||
default:
|
||||
if value, ok, err := requireInlineFlagValue(arg, "--source-dir"); ok || err != nil {
|
||||
if err != nil {
|
||||
@@ -2014,6 +2016,8 @@ func parseDeployWikiArgs(commandName string, args []string) (topdata.DeployWikiO
|
||||
opts.Force = true
|
||||
} else if arg == "--create" {
|
||||
opts.AllowCreates = true
|
||||
} else if arg == "--reset-managed-namespaces" {
|
||||
opts.ResetManagedNamespaces = true
|
||||
} else {
|
||||
return opts, fmt.Errorf("unknown %s argument %q", commandName, arg)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user