mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-02 20:23:50 +00:00
Move generic agent flags to cmd/agent/core (#3484)
This commit is contained in:
parent
0a99726fec
commit
ad507d8ee4
2 changed files with 12 additions and 14 deletions
|
@ -97,4 +97,16 @@ var flags = []cli.Flag{
|
||||||
Usage: "backend to run pipelines on",
|
Usage: "backend to run pipelines on",
|
||||||
Value: "auto-detect",
|
Value: "auto-detect",
|
||||||
},
|
},
|
||||||
|
&cli.IntFlag{
|
||||||
|
EnvVars: []string{"WOODPECKER_CONNECT_RETRY_COUNT"},
|
||||||
|
Name: "connect-retry-count",
|
||||||
|
Usage: "number of times to retry connecting to the server",
|
||||||
|
Value: 5,
|
||||||
|
},
|
||||||
|
&cli.DurationFlag{
|
||||||
|
EnvVars: []string{"WOODPECKER_CONNECT_RETRY_DELAY"},
|
||||||
|
Name: "connect-retry-delay",
|
||||||
|
Usage: "duration to wait before retrying to connect to the server",
|
||||||
|
Value: time.Second * 2,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,8 +15,6 @@
|
||||||
package kubernetes
|
package kubernetes
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
|
||||||
|
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -62,18 +60,6 @@ var Flags = []cli.Flag{
|
||||||
Name: "backend-k8s-secctx-nonroot",
|
Name: "backend-k8s-secctx-nonroot",
|
||||||
Usage: "`run as non root` Kubernetes security context option",
|
Usage: "`run as non root` Kubernetes security context option",
|
||||||
},
|
},
|
||||||
&cli.IntFlag{
|
|
||||||
EnvVars: []string{"WOODPECKER_CONNECT_RETRY_COUNT"},
|
|
||||||
Name: "connect-retry-count",
|
|
||||||
Usage: "number of times to retry connecting to the server",
|
|
||||||
Value: 5,
|
|
||||||
},
|
|
||||||
&cli.DurationFlag{
|
|
||||||
EnvVars: []string{"WOODPECKER_CONNECT_RETRY_DELAY"},
|
|
||||||
Name: "connect-retry-delay",
|
|
||||||
Usage: "duration to wait before retrying to connect to the server",
|
|
||||||
Value: time.Second * 2,
|
|
||||||
},
|
|
||||||
&cli.StringSliceFlag{
|
&cli.StringSliceFlag{
|
||||||
EnvVars: []string{"WOODPECKER_BACKEND_K8S_PULL_SECRET_NAMES"},
|
EnvVars: []string{"WOODPECKER_BACKEND_K8S_PULL_SECRET_NAMES"},
|
||||||
Name: "backend-k8s-pod-image-pull-secret-names",
|
Name: "backend-k8s-pod-image-pull-secret-names",
|
||||||
|
|
Loading…
Reference in a new issue