Skip to content

Moves the use_weights option under the registry key

John Jarvis requested to merge jarv/move-use-weights-registry into master

For gitlab-com/gl-infra/delivery#940 (closed)

Registry doesn't follow the other HAProxy configs where we set use_weights as a front-end option. This addresses that by moving the key under registry, which is a followup change to adding this option for registry in !243 (merged)

The existing spec tests didn't include canary so this also adds those tests, confirms the following:

  • That the default configuration, adds the canary server to the registry backend with a weight of 0
  • Overriding node.normal['gitlab-haproxy']['canary_registry']['default_weight'] will allow you to set a default weight of the canary server
  • The weight of the canary registry server in the canary backend doesn't have a weight set
Edited by John Jarvis

Merge request reports