lakeFS icon indicating copy to clipboard operation
lakeFS copied to clipboard

Reduce the complexity of lodaing config.NewConfig

Open nopcoder opened this issue 3 years ago • 0 comments

Loading configuration and intialize the configuration is currently scattared between initConfig that is called once and NewConfig which one uses the use while loading, parsing and validating the configuration. Adding defaults and the order we set them can be tricky. We should simplify this code and enable a single entrypoint that will set the order we set the defaults, load the configuration and validate the required fields.

nopcoder avatar Sep 19 '22 08:09 nopcoder