mirror of
https://github.com/project-zot/zot.git
synced 2026-06-15 20:07:55 +08:00
Report unknown keys when parsing configuration files
Report missing mandatory ldap keys Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
This commit is contained in:
committed by
Ramkumar Chinchani
parent
20a60cbad4
commit
7c3a8f9d07
@@ -102,13 +102,6 @@ func DumpRuntimeParams(log log.Logger) {
|
||||
}
|
||||
|
||||
func (c *Controller) Run(reloadCtx context.Context) error {
|
||||
// validate configuration
|
||||
if err := c.Config.Validate(c.Log); err != nil {
|
||||
c.Log.Error().Err(err).Msg("configuration validation failed")
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
// print the current configuration, but strip secrets
|
||||
c.Log.Info().Interface("params", c.Config.Sanitize()).Msg("configuration settings")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user