Skip to content

Commit

Permalink
chore: merge with upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
plyr4 committed Mar 30, 2023
2 parents 0369b3a + 3d6fa74 commit 469b0fd
Show file tree
Hide file tree
Showing 32 changed files with 1,973 additions and 860 deletions.
1 change: 0 additions & 1 deletion cmd/vela-worker/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ func (w *Worker) exec(index int) error {
Logger: logger,
Mock: w.Config.Mock,
Driver: w.Config.Executor.Driver,
LogMethod: w.Config.Executor.LogMethod,
MaxLogSize: w.Config.Executor.MaxLogSize,
LogStreamingTimeout: w.Config.Executor.LogStreamingTimeout,
EnforceTrustedRepos: w.Config.Executor.EnforceTrustedRepos,
Expand Down
1 change: 0 additions & 1 deletion cmd/vela-worker/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ func run(c *cli.Context) error {
// executor configuration
Executor: &executor.Setup{
Driver: c.String("executor.driver"),
LogMethod: c.String("executor.log_method"),
MaxLogSize: c.Uint("executor.max_log_size"),
LogStreamingTimeout: c.Duration("executor.log_streaming_timeout"),
EnforceTrustedRepos: c.Bool("executor.enforce-trusted-repos"),
Expand Down
2 changes: 1 addition & 1 deletion cmd/vela-worker/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ func (w *Worker) server() (http.Handler, *tls.Config) {
// https://pkg.go.dev/github.com/go-vela/worker/router?tab=doc#Load
_server := router.Load(
middleware.RequestVersion,
middleware.ServerAddress(w.Config.Server.Address),
middleware.Executors(w.Executors),
middleware.Secret(w.Config.Server.Secret),
middleware.Logger(logrus.StandardLogger(), time.RFC3339, true),
)

Expand Down
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ services:
- vela
environment:
EXECUTOR_DRIVER: linux
EXECUTOR_LOG_METHOD: 'time-chunks'
QUEUE_DRIVER: redis
QUEUE_ADDR: 'redis://redis:6379'
VELA_BUILD_LIMIT: 1
Expand Down
2 changes: 0 additions & 2 deletions executor/executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ func TestExecutor_New(t *testing.T) {
_linux, err := linux.New(
linux.WithBuild(_build),
linux.WithHostname("localhost"),
linux.WithLogMethod("byte-chunks"),
linux.WithMaxLogSize(2097152),
linux.WithPipeline(_pipeline),
linux.WithRepo(_repo),
Expand Down Expand Up @@ -103,7 +102,6 @@ func TestExecutor_New(t *testing.T) {
Build: _build,
Client: _client,
Driver: constants.DriverLinux,
LogMethod: "byte-chunks",
MaxLogSize: 2097152,
Pipeline: _pipeline,
Repo: _repo,
Expand Down
7 changes: 0 additions & 7 deletions executor/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,6 @@ var Flags = []cli.Flag{
Usage: "driver to be used for the executor",
Value: constants.DriverLinux,
},
&cli.StringFlag{
EnvVars: []string{"VELA_EXECUTOR_LOG_METHOD", "EXECUTOR_LOG_METHOD"},
FilePath: "/vela/executor/log_method",
Name: "executor.log_method",
Usage: "method used to publish logs to the server - options: (byte-chunks|time-chunks)",
Value: "byte-chunks",
},
&cli.UintFlag{
EnvVars: []string{"VELA_EXECUTOR_MAX_LOG_SIZE", "EXECUTOR_MAX_LOG_SIZE"},
FilePath: "/vela/executor/max_log_size",
Expand Down
Loading

0 comments on commit 469b0fd

Please sign in to comment.