diff --git a/api/openapi-spec/swagger.json b/api/openapi-spec/swagger.json
index 5b4f0ff675c5..67f9af08a69f 100644
--- a/api/openapi-spec/swagger.json
+++ b/api/openapi-spec/swagger.json
@@ -11,8 +11,8 @@
],
"swagger": "2.0",
"info": {
- "description": "Argo",
- "title": "Argo",
+ "description": "You can get examples of requests and responses by using the CLI with `--gloglevel=9`, e.g. `argo list --gloglevel=9`",
+ "title": "Argo Server API",
"version": "latest"
},
"paths": {
diff --git a/cmd/argo/commands/root.go b/cmd/argo/commands/root.go
index 4c326435610c..9a3bbf9f8e93 100644
--- a/cmd/argo/commands/root.go
+++ b/cmd/argo/commands/root.go
@@ -61,18 +61,21 @@ func NewCommand() *cobra.Command {
client.AddKubectlFlagsToCmd(command)
client.AddAPIClientFlagsToCmd(command)
-
// global log level
var logLevel string
+ var glogLevel int
var verbose bool
command.PersistentPreRun = func(cmd *cobra.Command, args []string) {
if verbose {
logLevel = "debug"
+ glogLevel = 6
}
cli.SetLogLevel(logLevel)
+ cli.SetGLogLevel(glogLevel)
log.WithField("version", argo.GetVersion()).Debug("CLI version")
}
command.PersistentFlags().StringVar(&logLevel, "loglevel", "info", "Set the logging level. One of: debug|info|warn|error")
+ command.PersistentFlags().IntVar(&glogLevel, "gloglevel", 0, "Set the glog logging level")
command.PersistentFlags().BoolVarP(&verbose, "verbose", "v", false, "Enabled verbose logging, i.e. --loglevel debug")
return command
diff --git a/docs/cli/argo.md b/docs/cli/argo.md
index c2f55e710d3c..de3500b0d6ae 100644
--- a/docs/cli/argo.md
+++ b/docs/cli/argo.md
@@ -27,6 +27,7 @@ If you're using the Argo Server (e.g. because you need large workflow support or
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
-h, --help help for argo
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
diff --git a/docs/cli/argo_archive.md b/docs/cli/argo_archive.md
index 9fe841b52090..49c2661da42a 100644
--- a/docs/cli/argo_archive.md
+++ b/docs/cli/argo_archive.md
@@ -27,6 +27,7 @@ argo archive [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_archive_delete.md b/docs/cli/argo_archive_delete.md
index ecd84838df4a..aed1a819afac 100644
--- a/docs/cli/argo_archive_delete.md
+++ b/docs/cli/argo_archive_delete.md
@@ -27,6 +27,7 @@ argo archive delete UID... [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_archive_get.md b/docs/cli/argo_archive_get.md
index 9ba1bdf5ecad..af4d68615739 100644
--- a/docs/cli/argo_archive_get.md
+++ b/docs/cli/argo_archive_get.md
@@ -28,6 +28,7 @@ argo archive get UID [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_archive_list.md b/docs/cli/argo_archive_list.md
index 3422b9ec12b9..bc5ad94054b1 100644
--- a/docs/cli/argo_archive_list.md
+++ b/docs/cli/argo_archive_list.md
@@ -30,6 +30,7 @@ argo archive list [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_auth.md b/docs/cli/argo_auth.md
index c1157a8f6c49..d0750390973d 100644
--- a/docs/cli/argo_auth.md
+++ b/docs/cli/argo_auth.md
@@ -27,6 +27,7 @@ argo auth [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_auth_token.md b/docs/cli/argo_auth_token.md
index 84c8bb5558be..b0f47787fb96 100644
--- a/docs/cli/argo_auth_token.md
+++ b/docs/cli/argo_auth_token.md
@@ -27,6 +27,7 @@ argo auth token [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_cluster-template.md b/docs/cli/argo_cluster-template.md
index 7dc75557fd59..ad44f6f42c8d 100644
--- a/docs/cli/argo_cluster-template.md
+++ b/docs/cli/argo_cluster-template.md
@@ -27,6 +27,7 @@ argo cluster-template [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_cluster-template_create.md b/docs/cli/argo_cluster-template_create.md
index b04299c27645..ad306e7c8019 100644
--- a/docs/cli/argo_cluster-template_create.md
+++ b/docs/cli/argo_cluster-template_create.md
@@ -29,6 +29,7 @@ argo cluster-template create FILE1 FILE2... [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_cluster-template_delete.md b/docs/cli/argo_cluster-template_delete.md
index bb181e444d7e..64a178824066 100644
--- a/docs/cli/argo_cluster-template_delete.md
+++ b/docs/cli/argo_cluster-template_delete.md
@@ -28,6 +28,7 @@ argo cluster-template delete WORKFLOW_TEMPLATE [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_cluster-template_get.md b/docs/cli/argo_cluster-template_get.md
index 3bc0fd06bbee..87a08188f1be 100644
--- a/docs/cli/argo_cluster-template_get.md
+++ b/docs/cli/argo_cluster-template_get.md
@@ -28,6 +28,7 @@ argo cluster-template get CLUSTER WORKFLOW_TEMPLATE... [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_cluster-template_lint.md b/docs/cli/argo_cluster-template_lint.md
index 62b2535da20b..db5fbb97d157 100644
--- a/docs/cli/argo_cluster-template_lint.md
+++ b/docs/cli/argo_cluster-template_lint.md
@@ -28,6 +28,7 @@ argo cluster-template lint FILE... [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_cluster-template_list.md b/docs/cli/argo_cluster-template_list.md
index 335086c25b8c..133aedd66dc5 100644
--- a/docs/cli/argo_cluster-template_list.md
+++ b/docs/cli/argo_cluster-template_list.md
@@ -28,6 +28,7 @@ argo cluster-template list [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_completion.md b/docs/cli/argo_completion.md
index e257b667efc9..82ef3c1a4f76 100644
--- a/docs/cli/argo_completion.md
+++ b/docs/cli/argo_completion.md
@@ -36,6 +36,7 @@ argo completion SHELL [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_cron.md b/docs/cli/argo_cron.md
index 8f7122837dcb..ceeec384a228 100644
--- a/docs/cli/argo_cron.md
+++ b/docs/cli/argo_cron.md
@@ -27,6 +27,7 @@ argo cron [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_cron_create.md b/docs/cli/argo_cron_create.md
index 745db66a12c5..1f0dd8ef7012 100644
--- a/docs/cli/argo_cron_create.md
+++ b/docs/cli/argo_cron_create.md
@@ -37,6 +37,7 @@ argo cron create FILE1 FILE2... [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_cron_delete.md b/docs/cli/argo_cron_delete.md
index f71ede6bec30..6a960e87b1d4 100644
--- a/docs/cli/argo_cron_delete.md
+++ b/docs/cli/argo_cron_delete.md
@@ -28,6 +28,7 @@ argo cron delete [CRON_WORKFLOW... | --all] [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_cron_get.md b/docs/cli/argo_cron_get.md
index ae86f6618ceb..40446e64ece5 100644
--- a/docs/cli/argo_cron_get.md
+++ b/docs/cli/argo_cron_get.md
@@ -28,6 +28,7 @@ argo cron get CRON_WORKFLOW... [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_cron_lint.md b/docs/cli/argo_cron_lint.md
index 5c8a303669ba..dffca8e9dd33 100644
--- a/docs/cli/argo_cron_lint.md
+++ b/docs/cli/argo_cron_lint.md
@@ -28,6 +28,7 @@ argo cron lint FILE... [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_cron_list.md b/docs/cli/argo_cron_list.md
index 223ddc0c94a5..4792ba6b3f94 100644
--- a/docs/cli/argo_cron_list.md
+++ b/docs/cli/argo_cron_list.md
@@ -29,6 +29,7 @@ argo cron list [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_cron_resume.md b/docs/cli/argo_cron_resume.md
index 10cda9f6d86d..1102b7a4f709 100644
--- a/docs/cli/argo_cron_resume.md
+++ b/docs/cli/argo_cron_resume.md
@@ -27,6 +27,7 @@ argo cron resume [CRON_WORKFLOW...] [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_cron_suspend.md b/docs/cli/argo_cron_suspend.md
index 98f166268a96..00f4419497f4 100644
--- a/docs/cli/argo_cron_suspend.md
+++ b/docs/cli/argo_cron_suspend.md
@@ -27,6 +27,7 @@ argo cron suspend CRON_WORKFLOW... [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_delete.md b/docs/cli/argo_delete.md
index e3364cba6fd5..c3095ad2ba82 100644
--- a/docs/cli/argo_delete.md
+++ b/docs/cli/argo_delete.md
@@ -48,6 +48,7 @@ argo delete [--dry-run] [WORKFLOW...|[--all] [--older] [--completed] [--resubmit
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_get.md b/docs/cli/argo_get.md
index 548f0f5a6cfe..9cf6f0062af8 100644
--- a/docs/cli/argo_get.md
+++ b/docs/cli/argo_get.md
@@ -43,6 +43,7 @@ argo get WORKFLOW... [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_lint.md b/docs/cli/argo_lint.md
index 89e75d693150..d60fdef65b1b 100644
--- a/docs/cli/argo_lint.md
+++ b/docs/cli/argo_lint.md
@@ -28,6 +28,7 @@ argo lint FILE... [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_list.md b/docs/cli/argo_list.md
index 721266fc6a40..f1b931bc33f7 100644
--- a/docs/cli/argo_list.md
+++ b/docs/cli/argo_list.md
@@ -40,6 +40,7 @@ argo list [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_logs.md b/docs/cli/argo_logs.md
index 82ba8274352c..984ceb1310db 100644
--- a/docs/cli/argo_logs.md
+++ b/docs/cli/argo_logs.md
@@ -63,6 +63,7 @@ argo logs WORKFLOW [POD] [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_node.md b/docs/cli/argo_node.md
index df9e531cfc5c..ed4eebf038f3 100644
--- a/docs/cli/argo_node.md
+++ b/docs/cli/argo_node.md
@@ -43,6 +43,7 @@ argo node ACTION WORKFLOW FLAGS [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_resubmit.md b/docs/cli/argo_resubmit.md
index 45102806b7ff..e3179b0101ce 100644
--- a/docs/cli/argo_resubmit.md
+++ b/docs/cli/argo_resubmit.md
@@ -58,6 +58,7 @@ argo resubmit [WORKFLOW...] [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_resume.md b/docs/cli/argo_resume.md
index 3e247eb7700b..16713e6b6dbf 100644
--- a/docs/cli/argo_resume.md
+++ b/docs/cli/argo_resume.md
@@ -40,6 +40,7 @@ argo resume WORKFLOW1 WORKFLOW2... [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_retry.md b/docs/cli/argo_retry.md
index 5187406e0503..716bac9b75d3 100644
--- a/docs/cli/argo_retry.md
+++ b/docs/cli/argo_retry.md
@@ -62,6 +62,7 @@ argo retry [WORKFLOW...] [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_server.md b/docs/cli/argo_server.md
index 57daddecc6d7..718f62c92bd4 100644
--- a/docs/cli/argo_server.md
+++ b/docs/cli/argo_server.md
@@ -44,6 +44,7 @@ See https://github.com/argoproj/argo/blob/master/docs/argo-server.md
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_stop.md b/docs/cli/argo_stop.md
index c0d103288968..84147b8db95a 100644
--- a/docs/cli/argo_stop.md
+++ b/docs/cli/argo_stop.md
@@ -41,6 +41,7 @@ argo stop WORKFLOW WORKFLOW2... [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_submit.md b/docs/cli/argo_submit.md
index bf1d1aab094f..8c67b83feffb 100644
--- a/docs/cli/argo_submit.md
+++ b/docs/cli/argo_submit.md
@@ -70,6 +70,7 @@ argo submit [FILE... | --from `kind/name] [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_suspend.md b/docs/cli/argo_suspend.md
index 70ae83611ffc..438a40af27d2 100644
--- a/docs/cli/argo_suspend.md
+++ b/docs/cli/argo_suspend.md
@@ -39,6 +39,7 @@ argo suspend WORKFLOW1 WORKFLOW2... [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_template.md b/docs/cli/argo_template.md
index 269fce531b3b..ab6fec14527d 100644
--- a/docs/cli/argo_template.md
+++ b/docs/cli/argo_template.md
@@ -27,6 +27,7 @@ argo template [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_template_create.md b/docs/cli/argo_template_create.md
index 7f9b3a546a55..2896c0f9cc4a 100644
--- a/docs/cli/argo_template_create.md
+++ b/docs/cli/argo_template_create.md
@@ -29,6 +29,7 @@ argo template create FILE1 FILE2... [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_template_delete.md b/docs/cli/argo_template_delete.md
index 15022179f9de..f8d6c26d47ea 100644
--- a/docs/cli/argo_template_delete.md
+++ b/docs/cli/argo_template_delete.md
@@ -28,6 +28,7 @@ argo template delete WORKFLOW_TEMPLATE [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_template_get.md b/docs/cli/argo_template_get.md
index edcfaf1b87c3..180c51805e9d 100644
--- a/docs/cli/argo_template_get.md
+++ b/docs/cli/argo_template_get.md
@@ -28,6 +28,7 @@ argo template get WORKFLOW_TEMPLATE... [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_template_lint.md b/docs/cli/argo_template_lint.md
index d164c6108b54..92910a9f731a 100644
--- a/docs/cli/argo_template_lint.md
+++ b/docs/cli/argo_template_lint.md
@@ -28,6 +28,7 @@ argo template lint (DIRECTORY | FILE1 FILE2 FILE3...) [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_template_list.md b/docs/cli/argo_template_list.md
index 7b6b6cde4325..9dc960d05e64 100644
--- a/docs/cli/argo_template_list.md
+++ b/docs/cli/argo_template_list.md
@@ -29,6 +29,7 @@ argo template list [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_terminate.md b/docs/cli/argo_terminate.md
index 2700993c188b..df3f5b75bf3b 100644
--- a/docs/cli/argo_terminate.md
+++ b/docs/cli/argo_terminate.md
@@ -39,6 +39,7 @@ argo terminate WORKFLOW WORKFLOW2... [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_version.md b/docs/cli/argo_version.md
index 04486b259554..5f04a3a7cda4 100644
--- a/docs/cli/argo_version.md
+++ b/docs/cli/argo_version.md
@@ -28,6 +28,7 @@ argo version [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_wait.md b/docs/cli/argo_wait.md
index 0d67c598bdce..0ee9d734f6e8 100644
--- a/docs/cli/argo_wait.md
+++ b/docs/cli/argo_wait.md
@@ -41,6 +41,7 @@ argo wait [WORKFLOW...] [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/cli/argo_watch.md b/docs/cli/argo_watch.md
index 50731f52e6af..a81805084f14 100644
--- a/docs/cli/argo_watch.md
+++ b/docs/cli/argo_watch.md
@@ -42,6 +42,7 @@ argo watch WORKFLOW [flags]
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
+ --gloglevel int Set the glog logging level
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
-k, --insecure-skip-verify If true, the Argo Server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaults to the ARGO_INSECURE_SKIP_VERIFY environment variable.
--instanceid string submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.
diff --git a/docs/swagger.md b/docs/swagger.md
index 4c7423a29be1..59475f4fe44b 100644
--- a/docs/swagger.md
+++ b/docs/swagger.md
@@ -1,5 +1,5 @@
-# Argo
-Argo
+# Argo Server API
+You can get examples of requests and responses by using the CLI with `--gloglevel=9`, e.g. `argo list --gloglevel=9`
## Version: latest
diff --git a/pkg/apiclient/_.primary.swagger.json b/pkg/apiclient/_.primary.swagger.json
index 5b8b170a3ad6..654f3cf74c8c 100644
--- a/pkg/apiclient/_.primary.swagger.json
+++ b/pkg/apiclient/_.primary.swagger.json
@@ -11,8 +11,8 @@
"https"
],
"info": {
- "title": "Argo",
- "description": "Argo",
+ "title": "Argo Server API",
+ "description": "You can get examples of requests and responses by using the CLI with `--gloglevel=9`, e.g. `argo list --gloglevel=9`",
"version": "VERSION"
},
"securityDefinitions": {
diff --git a/test/e2e/cli_test.go b/test/e2e/cli_test.go
index d31445b9445b..9f0d7283ac47 100644
--- a/test/e2e/cli_test.go
+++ b/test/e2e/cli_test.go
@@ -54,6 +54,34 @@ func (s *CLISuite) TestCompletion() {
})
}
+func (s *CLISuite) TestLogLevels() {
+ s.Run("Verbose", func() {
+ s.Given().
+ RunCli([]string{"-v", "list"}, func(t *testing.T, output string, err error) {
+ if assert.NoError(t, err) {
+ assert.Contains(t, output, "CLI version", "comment version header")
+ assert.Contains(t, output, "Config loaded from file", "glog output")
+ }
+ })
+ })
+ s.Run("LogLevel", func() {
+ s.Given().
+ RunCli([]string{"--loglevel=debug", "list"}, func(t *testing.T, output string, err error) {
+ if assert.NoError(t, err) {
+ assert.Contains(t, output, "CLI version", "comment version header")
+ assert.NotContains(t, output, "Config loaded from file", "glog output")
+ }
+ })
+ })
+ s.Run("GLogLevel", func() {
+ s.Given().
+ RunCli([]string{"--gloglevel=6", "list"}, func(t *testing.T, output string, err error) {
+ if assert.NoError(t, err) {
+ assert.Contains(t, output, "Config loaded from file", "glog output")
+ }
+ })
+ })
+}
func (s *CLISuite) TestVersion() {
_ = os.Setenv("KUBECONFIG", "/dev/null")
// check we can run this without error
diff --git a/ui/src/app/apidocs/components/apiDocs.tsx b/ui/src/app/apidocs/components/apiDocs.tsx
index fee8705884cb..7728f687def8 100644
--- a/ui/src/app/apidocs/components/apiDocs.tsx
+++ b/ui/src/app/apidocs/components/apiDocs.tsx
@@ -1,6 +1,13 @@
+import {Page} from 'argo-ui';
import * as React from 'react';
import SwaggerUI from 'swagger-ui-react';
import 'swagger-ui-react/swagger-ui.css';
import {uiUrl} from '../../shared/base';
-export const ApiDocs = () => ;
+export const ApiDocs = () => (
+
+
+
+
+
+);
diff --git a/workflow/util/util_test.go b/workflow/util/util_test.go
index 8d3cca8eace1..a9e644cbbdac 100644
--- a/workflow/util/util_test.go
+++ b/workflow/util/util_test.go
@@ -757,4 +757,4 @@ func TestToUnstructured(t *testing.T) {
assert.Equal(t, workflow.WorkflowKind, gv.Kind)
assert.Equal(t, workflow.Version, gv.Version)
}
-}
\ No newline at end of file
+}