Skip to content

Commit

Permalink
fix: sh not available in scratch container but used in argoexec
Browse files Browse the repository at this point in the history
Signed-off-by: Rohan Kumar <[email protected]>
  • Loading branch information
rohankmr414 committed Sep 24, 2022
1 parent e6eb02f commit 3668f00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion workflow/executor/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 3668f00

Please sign in to comment.