Trivial fix according to discussion about init-containers (#12)
Signed-off-by: DTadrzak <daniel.tadrzak@intel.com>
This commit is contained in:
parent
f52d10527d
commit
fde2c67d4e
@ -30,8 +30,10 @@ func main() {
|
|||||||
entrypoint.Resolve()
|
entrypoint.Resolve()
|
||||||
|
|
||||||
if comm = env.SplitEnvToList("COMMAND", " "); len(comm) == 0 {
|
if comm = env.SplitEnvToList("COMMAND", " "); len(comm) == 0 {
|
||||||
logger.Error.Printf("COMMAND env is empty")
|
// TODO(DTadrzak): we should consider other options to handle whether pod
|
||||||
os.Exit(1)
|
// is an init-container
|
||||||
|
logger.Warning.Printf("COMMAND env is empty")
|
||||||
|
os.Exit(0)
|
||||||
|
|
||||||
}
|
}
|
||||||
if err = command.Execute(comm); err != nil {
|
if err = command.Execute(comm); err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user