mirror of
https://github.com/alibaba/higress.git
synced 2026-06-07 03:37:28 +08:00
upgrade to istio 1.19 (#1211)
Co-authored-by: CH3CHO <ch3cho@qq.com> Co-authored-by: rinfx <893383980@qq.com>
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
ENVOY_VERSION="${ENVOY_VERSION:=1.20}"
|
||||
ISITO_VERSION="${ISTIO_VERSION:=1.12}"
|
||||
GO_VERSION=1.20
|
||||
|
||||
WORK_DIR=`cd $(dirname "$0")/../..;pwd`
|
||||
|
||||
cd $WORK_DIR
|
||||
@@ -15,14 +15,11 @@ for repo in ${envoy_repos[@]}; do
|
||||
if [ -e external/$repo ];then
|
||||
continue
|
||||
fi
|
||||
cp -r envoy/${ENVOY_VERSION}/$repo external/$repo
|
||||
for patch in `ls envoy/${ENVOY_VERSION}/patches/$repo/*.patch`; do
|
||||
patch -d external/$repo -p1 < $patch
|
||||
done
|
||||
cp -r envoy/$repo external/$repo
|
||||
cd external/$repo
|
||||
echo "gitdir: /parent/.git/modules/envoy/${ENVOY_VERSION}/$repo" > .git
|
||||
echo "gitdir: /parent/.git/modules/envoy/$repo" > .git
|
||||
if [ -f "go.mod" ]; then
|
||||
go mod tidy
|
||||
go mod tidy -go=${GO_VERSION}
|
||||
fi
|
||||
cd $WORK_DIR
|
||||
done
|
||||
@@ -33,14 +30,11 @@ for repo in ${istio_repos[@]}; do
|
||||
if [ -e external/$repo ];then
|
||||
continue
|
||||
fi
|
||||
cp -r istio/${ISTIO_VERSION}/$repo external/$repo
|
||||
for patch in `ls istio/${ISTIO_VERSION}/patches/$repo/*.patch`; do
|
||||
patch -d external/$repo -p1 < $patch
|
||||
done
|
||||
cp -r istio/$repo external/$repo
|
||||
cd external/$repo
|
||||
echo "gitdir: /parent/.git/modules/istio/${ISTIO_VERSION}/$repo" > .git
|
||||
echo "gitdir: /parent/.git/modules/istio/$repo" > .git
|
||||
if [ -f "go.mod" ]; then
|
||||
go mod tidy
|
||||
go mod tidy -go=${GO_VERSION}
|
||||
fi
|
||||
cd $WORK_DIR
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user