Revert "Explicitely disable Traefik on replica"

This reverts commit d2b3d18a84.
This commit is contained in:
Daniel Berteaud 2023-09-18 17:05:22 +02:00
parent d2b3d18a84
commit 92cd38b033
2 changed files with 1 additions and 2 deletions

View File

@ -13,7 +13,6 @@ def create_svc_txn:
| .ServiceTags += [$role]
[[- if .pg.server.traefik.enabled ]]
| if $role == "master" then .ServiceTags += ["[[ .traefik.instance ]].enable=true"] else .ServiceTags -= ["[[ .traefik.instance ]].enable=true"] end
| if $role == "master" then .ServiceTags -= ["[[ .traefik.instance ]].enable=false"] else .ServiceTags += ["[[ .traefik.instance ]].enable=false"] end
[[- end ]]
# Rewrite keys to remove the Service prefix

View File

@ -6,7 +6,7 @@ set -eo pipefail
EVENT=$1
NEW_ROLE=$2
# translate promoted = master and demoted = replica
# translate promoted = master and demoted = recplica
if [ "${NEW_ROLE}" = "promoted" ]; then
NEW_ROLE="master"
elif [ "${NEW_ROLE}" = "demoted" ]; then