stackanetes / kubernetes-entrypoint

Used as a container entrypoint, it will wait for specified k8s dependencies, create files based on ConfigMaps, and much more - before running a given command.
Apache License 2.0
50 stars 18 forks source link

files check #23

Closed kfox1111 closed 7 years ago

kfox1111 commented 7 years ago

In some of my containers, I write out a file instead of a socket. Could we get a feature for blocking until file exists instead of it specifically being a socket?

PiotrProkop commented 7 years ago

HI @kfox1111 maybe this dependency name is somehow misleading but it only checks if the file exists and user has permissions to it. So it should work in your case.

kfox1111 commented 7 years ago

Ah. Cool. Thanks. :)

Could the env var be aliased to DEPENDENCY_FILES too then to make the behavior more apparent?

PiotrProkop commented 7 years ago

Sure, I'll do it tomorrow.

PiotrProkop commented 7 years ago

hi @kfox1111 i did PR https://github.com/stackanetes/kubernetes-entrypoint/pull/24 with change , it will be included in next release.