Skip to content
  • Sami Hiltunen's avatar
    Match Gitaly configuration format in Omnibus · b76c190e
    Sami Hiltunen authored and Robert Marshall's avatar Robert Marshall committed
    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
    b76c190e