Skip to content

Commit

Permalink
fix: sh not available in scratch container but used in argoexec. Fixes
Browse files Browse the repository at this point in the history
…#9654 (#9679)

fix: sh not available in scratch container but used in argoexec

Signed-off-by: Rohan Kumar <rohan@pipekit.io>

Signed-off-by: Rohan Kumar <rohan@pipekit.io>
Co-authored-by: Yuan Tang <terrytangyuan@gmail.com>
  • Loading branch information
rohankmr414 and terrytangyuan committed Sep 25, 2022
1 parent 67fc0ac commit 38b55e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/executor/resource.go
Expand Up @@ -307,7 +307,7 @@ 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
}
Expand Down

0 comments on commit 38b55e3

Please sign in to comment.