Validate Gitaly configuration before run
Summary
Gitaly binary now supports a new sub-command configuration
with validate
sub-command introduced in the MR. It accept configuration in toml
format and layout as it usually does when it starts serving and it produces a JSON formatted output if there are validation errors in the provided configuration. The format of the output can be seen in the same MR. The major difference here is that it aggregates all found validation errors instead of reporting only a first one. This would be a good addition to a bootstrap process, so it is clear when there are problems with wrong configuration or if it is something else.
Proposal
Run cat config.toml | gitaly configuration validate
before gitaly config.toml
to assert configuration and produce more user-friendly report.