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

Fix config environment variable expansion for AOT_CONFIG_CONTENT #774

Merged

Conversation

jefchien
Copy link
Member

@jefchien jefchien commented Dec 2, 2021

Description: The configurations provided by AOT_CONFIG_CONTENT were not expanding their environment variables. It appears that this was factored out of the config unmarshalling in the upstream as part of v0.37.0. Wrapped the NewInMemory provider in the NewExpand provider to expand the environment variables.

Link to tracking Issue: #748

Testing: Added environment variable expansion tests to config_factory_test.go

@jefchien jefchien requested a review from a team as a code owner December 2, 2021 19:13
@jefchien jefchien force-pushed the 748-fix-config-env-var-expand branch from 366fab5 to d672d44 Compare December 2, 2021 19:16
@jefchien jefchien linked an issue Dec 2, 2021 that may be closed by this pull request
@Aneurysm9 Aneurysm9 merged commit b1f28d5 into aws-observability:main Dec 2, 2021
@jefchien jefchien deleted the 748-fix-config-env-var-expand branch December 2, 2021 20:36
@khanhntd khanhntd mentioned this pull request Dec 3, 2021
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.

Labels from env is not being expanded in config
4 participants