Closed sujuka99 closed 9 months ago
We have a problem with Environment variable names that differ from the field name.. See here
A good example is the brokers
field in PipelineConfig
We could do the renaming of config settings in this PR? I could maybe write a new SettingsSrouce to work around the bug, but I'm not sure if it's worth it.
A good example is the
brokers
field inPipelineConfig
this is already renamed in v3. does that solve it?
A good example is the
brokers
field inPipelineConfig
this is already renamed in v3. does that solve it?
Yes, if we have no fields different in name from their respective env vars, we wouldn't be affected by the bug.
@disrupted Is adding titles to the models relevant to the schema generation?
Closes #20 ?
Closes #20 ?
Not if we want full support (loading all env vars from the file)
I believe Pydantic doesn't export the variables in the dotenv
file to os.env
, but instead directly reads only the settings from it.
I am pretty sure that adding the support for everything else wouldn't be hard, but I would prefer to do it in another PR.
credit: @disrupted
Problems found during testing on real projects:
app.streams.config
is forced to have string values now, e.g. max.poll.records: 100
is not possible anymore (Must be fixed now)RuntimeError: Error: release name is invalid: wordwordwo-word-wordwordwordw-wordw-wordwor-wordwordwo
. That release name should be automatically trimmed if it's over the character limit.
closes #341