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

Add environment variable overrides for file loaded properties #30

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

svdberg
Copy link

@svdberg svdberg commented Mar 16, 2018

We internally use the functionality of overriding loaded properties with prefixed environment variables.
We convert the names of these env variables to property keys with a simple replacement scheme. This PR implements this logic. Feel free to do anything with it you like, just sharing in case there is any interest in this approach.

Example:
thrift.client=proxy
can be overridden with the
PREFIX_THRIFT_CLIENT environment variable, where PREFIX is configurable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant