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: set environment variables config values correctly for camelCaseconfig keys #245

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

doxsch
Copy link

@doxsch doxsch commented Feb 13, 2024

Lowercase the keys that are stored internally within Koanf and reload them. This is a workaround because internally keys are stored case sensitive. This causes the problem that environment variables can't match the exact key and therefore will not be unmarshalled as expected anymore.

Same workaround as in redpanda console: https://github.com/redpanda-data/console/blob/a0408520cedfdd73f4f444ddbfd364faceeb0b5f/backend/pkg/config/config.go#L162-L177

closes #179

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.

ENDTOEND_ENABLE env value is not working
1 participant