kelseyhightower / envconfig

Golang library for managing configuration data from environment variables
MIT License
5.07k stars 382 forks source link

added support for envconfig with no prefix if alt tag is set #10

Closed bketelsen closed 9 years ago

bketelsen commented 10 years ago

This pull request enables processing environment variables without the typical envconfig prefix if an alt tag exists. Use case: Kubernetes, where service environment variables will have a variety of prefixes.

bketelsen commented 10 years ago

maybe you shouldn't pull this yet.

https://github.com/thockin/kubernetes/commit/dcd1fbcda977483d7c1392bf9450856950bfca9e

rafecolton commented 10 years ago

@bketelsen seems like this would still be relevant for accepting common, un-prefixed env vars (for example, PORT)

masom commented 10 years ago

:+1: for this

kelseyhightower commented 9 years ago

@bketelsen Should we still do this?

masom commented 9 years ago

Thanks @kelseyhightower . This was required for deploying on Heroku.