kminion icon indicating copy to clipboard operation
kminion copied to clipboard

fix: set environment variables config values correctly for camelCaseconfig keys

Open doxsch opened this issue 2 years ago • 0 comments

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

doxsch avatar Feb 13 '24 20:02 doxsch