-
Notifications
You must be signed in to change notification settings - Fork 78
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
Handling override of environment variables behavior is unexpected #149
Comments
lenny-goodell
removed
the
hold
Intended for PRs we want to flag for ongoing review
label
Apr 17, 2020
12 tasks
addressed by #325 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When trying to override a value using environment variables, i.e:
Something a little strange seems to be happening. You can see the error that it can't convert a string to an int, but this is as it is trying to unmarshal into the configuration struct which of course port is an int. The funny thing is, that you can see that it takes effect, but not because it unmarsalled, but because it was successfully sent to consul first before unmarshalling to configuration, and then a little later it receives the configuration back from consul and gets the appropriate value.
TL;DR: It works, just not in the expected or preferred manner. Its unmarshalled into configuration coming back from Consul, not from reading env or toml directly/locally.
This issue doesn't present itself in
config-seed
though i do imagine it would present itself in thedevice-services-sdk
.The text was updated successfully, but these errors were encountered: