mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-24 10:07:21 +02: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
@ -194,16 +194,6 @@ var flags = append([]cli.Flag{
|
||||
Name: "keepalive-min-time",
|
||||
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{
|
||||
EnvVars: []string{"WOODPECKER_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")
|
||||
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)
|
||||
return config.NewCombined(configFetcher, httpFetcher)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user