aperture
aperture copied to clipboard
Config deserialization validation error is swallowed
Describe the bug When config is deserialized during app creation and error is thrown, agent panics without error.
Steps to reproduce Simply run the agent without any config file.
What did you expect to see? An error message describing issue regarding config deserialization.
What did you see instead? A panic without concrete error:
panic: fx.New failed:
What version did you use? Version: 8a5568b0
What config did you use? Config: empty
Additional context
After commenting out the line fx.WithLogger(FxLogger())
in pkg/config/log.go
, the following error is being logged:
Key: 'EtcdConfig.Endpoints' Error:Field validation for 'Endpoints' failed on the 'gt' tag
Possibly related to https://github.com/fluxninja/aperture/issues/546