Skip to content

Commit

Permalink
add upgrade compatibility (#2468)
Browse files Browse the repository at this point in the history
Co-authored-by: yl4811 <yl4811@yealink.com>
  • Loading branch information
ShaPoHun and yl4811 committed Mar 13, 2023
1 parent 482167a commit 282706d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dist/images/update/1.10-1.11.2.sh
Expand Up @@ -16,6 +16,14 @@ for dnat in $all_dnat;do
fi
nat_name=$(kubectl get $dnat -o jsonpath='{.metadata.name}')
kubectl annotate eip $eip ovn.kubernetes.io/vpc_nat=$nat_name
gw_anno=$(kubectl get $dnat -o jsonpath='{.metadata.labels}'|grep "ovn.kubernetes.io/vpc-nat-gw-name") || true
if [ -n "$gw_anno" ];then
continue
fi
eip_port=$(kubectl get $dnat -o jsonpath='{.spec.externalPort}')
kubectl label $dnat ovn.kubernetes.io/vpc_dnat_eport=$eip_port
gw=$(kubectl get $dnat -o jsonpath='{.status.natGwDp}')
kubectl label $dnat ovn.kubernetes.io/vpc-nat-gw-name=$gw
done

echo "begin upgrade iptables-snat-rules.kubeovn.io"
Expand Down

0 comments on commit 282706d

Please sign in to comment.