Fix flag name (#3534)

and remove two unused flags

should close https://github.com/woodpecker-ci/woodpecker/issues/3528
This commit is contained in:
qwerty287 2024-03-21 21:39:16 +01:00 committed by GitHub
parent 6abc112262
commit 326069c983
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 11 deletions

View file

@ -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",

View file

@ -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)
}