Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow use of Downward API in ConfigMap files? #28560

Closed
jberkus opened this issue Jul 6, 2016 · 4 comments
Closed

Allow use of Downward API in ConfigMap files? #28560

jberkus opened this issue Jul 6, 2016 · 4 comments
Labels
sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery.

Comments

@jberkus
Copy link

jberkus commented Jul 6, 2016

The Problem:

Currently I have an application which uses an entrypoint.sh script as its command, entirely because I need to convert a bunch of ENV vars passed by ConfigMap into a configuration file. I don't think I'm unique in doing this. I'd use ConfigMap to mount the configuration file (a yaml file) directly, except that I need to insert some "dynamic" values at deployment time, such as the Pod IP and the Pod name.

Suggested Solution:

It would be great to implement some method of merging values from the Downward API, or even from other ConfigMaps, into a specially-structured Configmap at deployment time. I don't really know what this would look like; possibly something like the template merge supported by various CMSes like Salt? As a solution, it would allow users to eliminate a whole host of poorly-maintained entrypoint.sh scripts.

@ncdc
Copy link
Member

ncdc commented Jul 7, 2016

cc @kubernetes/rh-cluster-infra @smarterclayton

@dims
Copy link
Member

dims commented Jul 26, 2016

@ncdc @jberkus : Does this PR help with your situation? #29607

@jberkus
Copy link
Author

jberkus commented Jul 26, 2016

@dims: somewhat, but not completely. See comments on that PR.

@jberkus
Copy link
Author

jberkus commented Aug 17, 2016

Closing in favor of #30716

@jberkus jberkus closed this as completed Aug 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery.
Projects
None yet
Development

No branches or pull requests

5 participants