Trivial fix according to discussion about init-containers (#12)

Signed-off-by: DTadrzak <daniel.tadrzak@intel.com>
This commit is contained in:
DTadrzak 2016-11-14 14:04:23 +01:00
parent f52d10527d
commit fde2c67d4e

View File

@ -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 {