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

Add pod dependencies #31

Closed seaneagan closed 6 years ago

seaneagan commented 6 years ago

Pod dependencies check for at least one pod which satisfies all of:

It uses JSON for the the env var encoding to avoid inventing a new complicated syntax for specifying labels.

The use case here is the same as #27 and should address it since the pods of the targeted daemonsets likely have (or least can have) pods with shared labels. The decision to target pods with labels instead of daemonsets with labels is to be more generic and cover any case of needing a certain type of pod on the same node, regardless of how it got there.

intlabs commented 6 years ago

@kfox1111 this may be of interest to you :)

intlabs commented 6 years ago

@PiotrProkop @Quentin-M can we possibly get this merged/reviewed - for OpenStack-Helm this is a feature urgently required for deployment - and I'd ideally not like to run a fork.

kfox1111 commented 6 years ago

Yeah, thanks for the heads up. :)

Quentin-M commented 6 years ago

Absolutely, thanks!

intlabs commented 6 years ago

@Quentin-M @PiotrProkop could we get a new image pushed with this PR?

Quentin-M commented 6 years ago

@intlabs There youuu go: https://github.com/stackanetes/kubernetes-entrypoint/releases/tag/v0.3.0