Skip to content

Fix get-postgresql-primary command for Geo secondary sites

Grant Young requested to merge gy-ctl-postgres-geo-fix into master

What does this MR do?

MR fixes the gitlab-ctl get-postgresql-primary command when being run on a Geo secondary site. On that type of setup the Postgres Primary Consul service entry is listed under standby-leader instead.

Related issues

Closes https://gitlab.com/gitlab-org/quality/gitlab-environment-toolkit/-/issues/145

Relates #6203 (closed)

Checklist

See Definition of done.

For anything in this list which will not be completed, please provide a reason in the MR discussion

Required

  • Merge Request Title, and Description are up to date, accurate, and descriptive
  • MR targeting the appropriate branch
  • MR has a green pipeline on GitLab.com
  • Pipeline is green on dev.gitlab.org if the change is touching anything besides documentation or internal cookbooks
  • trigger-package has a green pipeline running against latest commit
Edited by Grant Young

Merge request reports