[go: up one dir, main page]

Skip to content

Commit

Permalink
fix(patch/v25.2): dereference outputs ctn config (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
ecrupper authored Nov 1, 2024
1 parent 964d7a1 commit 0f0deb2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions cmd/vela-worker/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,11 @@ func (w *Worker) exec(index int, config *api.Worker) error {
break
}

// set the outputs container ID
w.Config.Executor.OutputCtn.ID = fmt.Sprintf("outputs_%s", p.ID)
// dereference configured outputs ctn config and set the outputs container ID for the executor
//
// need to dereference to avoid executors sharing the last set outputs container config
execOutputCtn := *w.Config.Executor.OutputCtn
execOutputCtn.ID = fmt.Sprintf("outputs_%s", p.ID)

// create logger with extra metadata
//
Expand Down Expand Up @@ -240,7 +243,7 @@ func (w *Worker) exec(index int, config *api.Worker) error {
Build: item.Build,
Pipeline: p.Sanitize(w.Config.Runtime.Driver),
Version: v.Semantic(),
OutputCtn: w.Config.Executor.OutputCtn,
OutputCtn: &execOutputCtn,
})

// add the executor to the worker
Expand Down

0 comments on commit 0f0deb2

Please sign in to comment.