Skip to content
Permalink
Browse files
fix(kube-run): didn't work in Native Buildah mode
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 db1fec686351f360174f45876d2155986d35cd50
Showing with 1 addition and 1 deletion.
  1. +1 −1 cmd/werf/kube_run/kube_run.go
@@ -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

0 comments on commit db1fec6

Please sign in to comment.