Skip to content

Commit

Permalink
chore(deps): upgrade envoy with DNS fix (#10930)
Browse files Browse the repository at this point in the history
* chore(deps): upgrade envoy with DNS fix
* build: make envoy version handling more flexible

Signed-off-by: Mike Beaumont <[email protected]>
  • Loading branch information
michaelbeaumont committed Jul 18, 2024
1 parent 124fc3e commit 57fba0e
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions tools/releases/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,12 @@ function envoy_version() {
# - if ENVOY_TAG is a real git tag like 'v1.20.0' then the version is equal to '1.20.0' (without the first letter 'v').
# - if ENVOY_TAG is a commit hash then the version will look like '1.20.1-dev-b16d390f'

ENVOY_TAG=${ENVOY_TAG:-"v1.27.7"}
ENVOY_VERSION=$(curl --silent --location "https://raw.githubusercontent.com/envoyproxy/envoy/${ENVOY_TAG}/VERSION.txt")
ENVOY_TAG=${ENVOY_TAG:-"v1.27.7-k.1"}

# for envoy versions older than v1.22.0 file 'VERSION.txt' used to be called 'VERSION'
if [[ "${ENVOY_VERSION}" == "404: Not Found" ]]; then
ENVOY_VERSION=$(curl --silent --location --fail "https://raw.githubusercontent.com/envoyproxy/envoy/${ENVOY_TAG}/VERSION")
fi

if [[ "${ENVOY_TAG}" =~ ^v[0-9]*\.[0-9]*\.[0-9]*$ ]]; then
echo "${ENVOY_VERSION}"
if [[ "${ENVOY_TAG}" =~ ^v[0-9]*\.[0-9]*\.[0-9]* ]]; then
echo "${ENVOY_TAG#v}"
else
ENVOY_VERSION=$(curl --silent --location "https://raw.githubusercontent.com/envoyproxy/envoy/${ENVOY_TAG%%-*}/VERSION.txt")
echo "${ENVOY_VERSION}-${ENVOY_TAG:0:8}"
fi
set +o errexit
Expand Down

0 comments on commit 57fba0e

Please sign in to comment.