spec: change executable path in App.Exec to be PATH-dependent. #527
Conversation
dc15658
to
2243912
Compare
Cc @thockin, curious on his take
|
ping? |
@yifan-gu What is the motivation for supporting this? |
@vcaputo Mostly because k8s's pod spec allows relative path. |
We do? Where do you see that? On Thu, Oct 15, 2015 at 4:35 PM, Yifan Gu notifications@github.com wrote:
|
It's not explicitly said that relative path is allowed or not in the spec But I can set something like |
@thockin ^ |
There's a difference between being a relative name and being a PATH-dependent name. Docker does support PATH lookups on its exec. Does rkt? |
At this time rkt largely reflects the ExecStart rules of systemd as documented in systemd.service(5), so it's an absolute path only. |
So other than the title of this PR, the change itself seems to bring the in line with Docker's behavior and kubernetes' expectations. LGTM |
2243912
to
e3600c4
Compare
The searching of the executable path duplicates the shell. The details are described in the manual page of exec(3).
e3600c4
to
7d3e414
Compare
Thanks, title changed. |
@yifan-gu I know diagexec supports it, that was done for the sake of |
spec: change executable path in App.Exec to be PATH-dependent.
Since appc/spec#527 the spec allows relative paths in App.Exec, so we don't need to prepend "/bin/sh -c".
Since appc/spec#527 the spec allows relative paths in App.Exec, so we don't need to prepend "/bin/sh -c".
The searching of the executable path duplicates the shell. Copied from
the description in man exec(3).