Is your feature request related to a problem? Please describe.
I'm always frustrated when additional proprietary logic is used for validation, when existing solutions can be used. It is also unpleasant when the config structure is used only for validation, although it can be used in various components.
Describe the solution you'd like
Make validation through viper.UnmarshalExact and reuse the config struct in the components.
Describe alternatives you've considered
Keeping as is, but with a lot of code and duplicate structures.
Additional context
Refs #2981.
First, you need to change the config so that you can perform validation simply: #2993.
Is your feature request related to a problem? Please describe.
I'm always frustrated when additional proprietary logic is used for validation, when existing solutions can be used. It is also unpleasant when the config structure is used only for validation, although it can be used in various components.
Describe the solution you'd like
Make validation through viper.UnmarshalExact and reuse the config struct in the components.
Describe alternatives you've considered
Keeping as is, but with a lot of code and duplicate structures.
Additional context
Refs #2981. First, you need to change the config so that you can perform validation simply: #2993.