Skip to content

Commit

Permalink
fix(kube-run): didn't work in Native Buildah mode
Browse files Browse the repository at this point in the history
Failed with error:
```
Error: error running pod: fork/exec werf-in-a-user-namespace: no such file or directory
```

Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
  • Loading branch information
ilya-lesikov committed Apr 8, 2022
1 parent aa1375e commit db1fec6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/werf/kube_run/kube_run.go
Expand Up @@ -484,7 +484,7 @@ func run(ctx context.Context, pod, secret, namespace string, werfConfig *config.
return common.WithoutTerminationSignalsTrap(func() error {
logboek.Context(ctx).LogF("Running pod %q in namespace %q ...\n", pod, namespace)

cmd := exec.Command(os.Args[0], args...)
cmd := exec.Command(strings.TrimSuffix(os.Args[0], "-in-a-user-namespace"), args...)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stdin
cmd.Stdin = os.Stdin
Expand Down

0 comments on commit db1fec6

Please sign in to comment.