From c35a8bdb159ee4f60a8ffeb331e09001a4e5ede6 Mon Sep 17 00:00:00 2001 From: Tom Moulard Date: Fri, 26 Feb 2021 10:20:03 +0100 Subject: [PATCH] Fixing doc for default value of checknewversion --- docs/content/reference/static-configuration/cli-ref.md | 6 +++--- docs/content/reference/static-configuration/env-ref.md | 6 +++--- internal/gendoc.go | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/content/reference/static-configuration/cli-ref.md b/docs/content/reference/static-configuration/cli-ref.md index 48e81df02..934569ab3 100644 --- a/docs/content/reference/static-configuration/cli-ref.md +++ b/docs/content/reference/static-configuration/cli-ref.md @@ -184,7 +184,7 @@ plugin's module name. plugin's version. `--global.checknewversion`: -Periodically check if a new version has been released. (Default: ```false```) +Periodically check if a new version has been released. (Default: ```true```) `--global.sendanonymoususage`: Periodically send anonymous usage statistics. If the option is not specified, it will be enabled by default. (Default: ```false```) @@ -694,7 +694,7 @@ Display additional provider logs. (Default: ```false```) Watch provider. (Default: ```true```) `--providers.providersthrottleduration`: -Backends throttle duration: minimum duration between 2 events from providers before applying a new configuration. It avoids unnecessary reloads if multiples events are sent in a short amount of time. (Default: ```0```) +Backends throttle duration: minimum duration between 2 events from providers before applying a new configuration. It avoids unnecessary reloads if multiples events are sent in a short amount of time. (Default: ```2```) `--providers.rancher`: Enable Rancher backend with default settings. (Default: ```false```) @@ -802,7 +802,7 @@ The amount of time to wait for a server's response headers after fully writing t Disable SSL certificate verification. (Default: ```false```) `--serverstransport.maxidleconnsperhost`: -If non-zero, controls the maximum idle (keep-alive) to keep per-host. If zero, DefaultMaxIdleConnsPerHost is used (Default: ```0```) +If non-zero, controls the maximum idle (keep-alive) to keep per-host. If zero, DefaultMaxIdleConnsPerHost is used (Default: ```200```) `--serverstransport.rootcas`: Add cert file for self-signed certificate. diff --git a/docs/content/reference/static-configuration/env-ref.md b/docs/content/reference/static-configuration/env-ref.md index f3bc6d607..46e227b08 100644 --- a/docs/content/reference/static-configuration/env-ref.md +++ b/docs/content/reference/static-configuration/env-ref.md @@ -184,7 +184,7 @@ plugin's module name. plugin's version. `TRAEFIK_GLOBAL_CHECKNEWVERSION`: -Periodically check if a new version has been released. (Default: ```false```) +Periodically check if a new version has been released. (Default: ```true```) `TRAEFIK_GLOBAL_SENDANONYMOUSUSAGE`: Periodically send anonymous usage statistics. If the option is not specified, it will be enabled by default. (Default: ```false```) @@ -694,7 +694,7 @@ Display additional provider logs. (Default: ```false```) Watch provider. (Default: ```true```) `TRAEFIK_PROVIDERS_PROVIDERSTHROTTLEDURATION`: -Backends throttle duration: minimum duration between 2 events from providers before applying a new configuration. It avoids unnecessary reloads if multiples events are sent in a short amount of time. (Default: ```0```) +Backends throttle duration: minimum duration between 2 events from providers before applying a new configuration. It avoids unnecessary reloads if multiples events are sent in a short amount of time. (Default: ```2```) `TRAEFIK_PROVIDERS_RANCHER`: Enable Rancher backend with default settings. (Default: ```false```) @@ -802,7 +802,7 @@ The amount of time to wait for a server's response headers after fully writing t Disable SSL certificate verification. (Default: ```false```) `TRAEFIK_SERVERSTRANSPORT_MAXIDLECONNSPERHOST`: -If non-zero, controls the maximum idle (keep-alive) to keep per-host. If zero, DefaultMaxIdleConnsPerHost is used (Default: ```0```) +If non-zero, controls the maximum idle (keep-alive) to keep per-host. If zero, DefaultMaxIdleConnsPerHost is used (Default: ```200```) `TRAEFIK_SERVERSTRANSPORT_ROOTCAS`: Add cert file for self-signed certificate. diff --git a/internal/gendoc.go b/internal/gendoc.go index 6e6290ec3..c8d739445 100644 --- a/internal/gendoc.go +++ b/internal/gendoc.go @@ -14,7 +14,7 @@ import ( "github.com/traefik/paerser/flag" "github.com/traefik/paerser/generator" "github.com/traefik/paerser/parser" - "github.com/traefik/traefik/v2/pkg/config/static" + "github.com/traefik/traefik/v2/cmd" "github.com/traefik/traefik/v2/pkg/log" ) @@ -29,7 +29,7 @@ func main() { func genStaticConfDoc(outputFile, prefix string, encodeFn func(interface{}) ([]parser.Flat, error)) { logger := log.WithoutContext().WithField("file", outputFile) - element := &static.Configuration{} + element := &cmd.NewTraefikConfiguration().Configuration generator.Generate(element)