From 0f0deb2934c766f11a68b6c50da94eebd5bb35d5 Mon Sep 17 00:00:00 2001 From: Easton Crupper <65553218+ecrupper@users.noreply.github.com> Date: Fri, 1 Nov 2024 15:29:14 -0400 Subject: [PATCH] fix(patch/v25.2): dereference outputs ctn config (#614) --- cmd/vela-worker/exec.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cmd/vela-worker/exec.go b/cmd/vela-worker/exec.go index 99a319ea..db9fcae6 100644 --- a/cmd/vela-worker/exec.go +++ b/cmd/vela-worker/exec.go @@ -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 // @@ -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