From 3668f004a16a1a5da5ad5b1f8d59bb7b683cab17 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Sun, 25 Sep 2022 03:29:31 +0530 Subject: [PATCH] fix: sh not available in scratch container but used in argoexec Signed-off-by: Rohan Kumar --- workflow/executor/resource.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/workflow/executor/resource.go b/workflow/executor/resource.go index 0541c690ac376..7e7cd2a1273a6 100644 --- a/workflow/executor/resource.go +++ b/workflow/executor/resource.go @@ -307,7 +307,8 @@ func (we *WorkflowExecutor) SaveResourceParameters(ctx context.Context, resource resArgs = append(resArgs, "-n", resourceNamespace) } cmdStr := fmt.Sprintf("kubectl get %s -o json | jq -rc '%s'", strings.Join(resArgs, " "), param.ValueFrom.JQFilter) - cmd = exec.Command("sh", "-c", cmdStr) + cmd = exec.Command(cmdStr) + } else { continue }