From fee082bfd256a8e5b4c0596ed4c054decbc2e0e9 Mon Sep 17 00:00:00 2001 From: Curt Bushko Date: Fri, 11 Aug 2023 12:04:01 -0400 Subject: [PATCH] Update consul-enterprise-version script to add -ent --- .../build-support/scripts/consul-enterprise-version.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/control-plane/build-support/scripts/consul-enterprise-version.sh b/control-plane/build-support/scripts/consul-enterprise-version.sh index 6b48bb4678..37df85dfc5 100755 --- a/control-plane/build-support/scripts/consul-enterprise-version.sh +++ b/control-plane/build-support/scripts/consul-enterprise-version.sh @@ -4,8 +4,10 @@ FILE=$1 VERSION=$(yq .global.image $FILE) -if [[ !"${VERSION}" == *"consul:"* ]]; then +if [[ !"${VERSION}" == *"hashicorppreview/consul:"* ]]; then VERSION=$(echo ${VERSION} | sed "s/consul:/consul-enterprise:/g") +elif [[ !"${VERSION}" == *"hashicorp/consul:"* ]]; then + VERSION=$(echo ${VERSION} | sed "s/consul:/consul-enterprise:/g" | sed "s/$/-ent/g") fi echo "${VERSION}"