mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-09-29 06:51:59 +00:00
Fix flag name (#3534)
and remove two unused flags should close https://github.com/woodpecker-ci/woodpecker/issues/3528
This commit is contained in:
parent
6abc112262
commit
326069c983
2 changed files with 1 additions and 11 deletions
|
@ -194,16 +194,6 @@ var flags = append([]cli.Flag{
|
||||||
Name: "keepalive-min-time",
|
Name: "keepalive-min-time",
|
||||||
Usage: "server-side enforcement policy on the minimum amount of time a client should wait before sending a keepalive ping.",
|
Usage: "server-side enforcement policy on the minimum amount of time a client should wait before sending a keepalive ping.",
|
||||||
},
|
},
|
||||||
&cli.StringFlag{
|
|
||||||
EnvVars: []string{"WOODPECKER_SECRET_ENDPOINT"},
|
|
||||||
Name: "secret-service",
|
|
||||||
Usage: "secret plugin endpoint",
|
|
||||||
},
|
|
||||||
&cli.StringFlag{
|
|
||||||
EnvVars: []string{"WOODPECKER_REGISTRY_ENDPOINT"},
|
|
||||||
Name: "registry-service",
|
|
||||||
Usage: "registry plugin endpoint",
|
|
||||||
},
|
|
||||||
&cli.StringFlag{
|
&cli.StringFlag{
|
||||||
EnvVars: []string{"WOODPECKER_CONFIG_SERVICE_ENDPOINT"},
|
EnvVars: []string{"WOODPECKER_CONFIG_SERVICE_ENDPOINT"},
|
||||||
Name: "config-service-endpoint",
|
Name: "config-service-endpoint",
|
||||||
|
|
|
@ -59,7 +59,7 @@ func setupConfigService(c *cli.Context, privateSignatureKey crypto.PrivateKey) c
|
||||||
timeout := c.Duration("forge-timeout")
|
timeout := c.Duration("forge-timeout")
|
||||||
configFetcher := config.NewForge(timeout)
|
configFetcher := config.NewForge(timeout)
|
||||||
|
|
||||||
if endpoint := c.String("config-extension-endpoint"); endpoint != "" {
|
if endpoint := c.String("config-service-endpoint"); endpoint != "" {
|
||||||
httpFetcher := config.NewHTTP(endpoint, privateSignatureKey)
|
httpFetcher := config.NewHTTP(endpoint, privateSignatureKey)
|
||||||
return config.NewCombined(configFetcher, httpFetcher)
|
return config.NewCombined(configFetcher, httpFetcher)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue