Skip to content

Commit db1fec6

Browse files
committed
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>
1 parent aa1375e commit db1fec6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/werf/kube_run/kube_run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ func run(ctx context.Context, pod, secret, namespace string, werfConfig *config.
484484
return common.WithoutTerminationSignalsTrap(func() error {
485485
logboek.Context(ctx).LogF("Running pod %q in namespace %q ...\n", pod, namespace)
486486

487-
cmd := exec.Command(os.Args[0], args...)
487+
cmd := exec.Command(strings.TrimSuffix(os.Args[0], "-in-a-user-namespace"), args...)
488488
cmd.Stdout = os.Stdout
489489
cmd.Stderr = os.Stdin
490490
cmd.Stdin = os.Stdin

0 commit comments

Comments
 (0)