Invoke sh
from $PATH instead of hard-coded location for postStart and preStop events
#1339
Labels
sh
from $PATH instead of hard-coded location for postStart and preStop events
#1339
Description
Currently, postStart and preStop events assume the
sh
binary is located in/bin/sh/
. However, this is not always the case, as discussed here, wheresh
is actually located in/usr/bin/sh
.I'm opening this issue to investigate whether it's possible to simply invoke
sh
in the Kubernetes PostStart lifecycle hook and have it expanded to the appropriate location on $PATH rather than hard-coding the location of sh to/bin/sh/
.I'm hopeful this is possible, as the Debugging Hook Handlers section of the Kubernetes docs show an error where a specific command was not found on $PATH:
The text was updated successfully, but these errors were encountered: