Skip to content
Snippets Groups Projects
Commit a0f05d22ef78 authored by Sami Hiltunen's avatar Sami Hiltunen
Browse files

Match Gitaly configuration format in Omnibus

The configuration formats of Gitaly and Omnibus deviate from each
other creating a few problems:

1. Configuration keys for the same option differ between the context of
   Omnibus and Gitaly creating confusion for the user.

2. Each new key added requires duplicate work to map the different keys
   into Omnibus.

This change introduces gitaly['configuration'] matching configuration
in Omnibus with Gitaly's own format. The previous configuration keys
are remapped into this new format to assist administrators during the
transition period.

The configuration values are now serialized directly into
TOML instead of using a template.

Removes unneeded values allowing Gitaly's own source to be the single
source of truth for configuration.

Updates tests because the new serialization method does not output empty
config sections.

Guards are included to prevent errors with latency configurations that
must be arrays where the previous configuration expected a string until
such time as Gitaly's own validation subroutines are implemented.

Changelog: changed
parent 2ba2d18b947d
No related branches found
No related tags found
2 merge requests!102heptapod#1237: making 0.38 the new oldstable,!92Merging upstream 15.10.0+ce.0
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment