From 3df96b638a0d2220d20e5444ed63c4ee7f8b8f52 Mon Sep 17 00:00:00 2001 From: Jonathan Chang Date: Mon, 16 Dec 2024 18:00:31 -0800 Subject: [PATCH] use overwrite --- dev-infrastructure/scripts/istio.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev-infrastructure/scripts/istio.sh b/dev-infrastructure/scripts/istio.sh index ba8856852..422fa5fdd 100755 --- a/dev-infrastructure/scripts/istio.sh +++ b/dev-infrastructure/scripts/istio.sh @@ -40,8 +40,8 @@ export OLDVERSION="$CURRENT_VERSION" echo "********** Istio UpGrade Started with version ${NEWVERSION} **************" # Use revision tag to upgrade istio. -istioctl tag set "$TAG" --revision "${OLDVERSION}" --istioNamespace aks-istio-system -istioctl tag set prod-canary --revision "${NEWVERSION}" --istioNamespace aks-istio-system +istioctl tag set "$TAG" --revision "${OLDVERSION}" --istioNamespace aks-istio-system --overwrite +istioctl tag set prod-canary --revision "${NEWVERSION}" --istioNamespace aks-istio-system --overwrite # Get the namespaces with the label istio.io/rev=$TAG or istio.io/rev=$OLDVERSION(If istio upgrade has never run before, the tag will be the old istio version) export namespaces=$(kubectl get namespaces --selector=istio.io/rev="$OLDVERSION" -o jsonpath='{.items[*].metadata.name}' | xargs -n1 echo; kubectl get namespaces --selector=istio.io/rev="$TAG" -o jsonpath='{.items[*].metadata.name}' | xargs -n1 echo)