Skip to content

Commit

Permalink
Fix names of istio-iptables scripts called in Debian package (istio#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
rlenglet committed Jan 8, 2020
1 parent 3646cfe commit dc5635b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/packaging/common/istio-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,21 +69,21 @@ if [ "${ISTIO_CUSTOM_IP_TABLES}" != "true" ] ; then
if [[ ${1-} == "init" || ${1-} == "-p" ]] ; then
# clean the previous Istio iptables chains. This part is different from the init image mode,
# where the init container runs in a fresh environment and there cannot be previous Istio chains
"${ISTIO_BIN_BASE}/istio-clean-iptables"
"${ISTIO_BIN_BASE}/istio-clean-iptables.sh"

# Update iptables, based on current config. This is for backward compatibility with the init image mode.
# The sidecar image can replace the k8s init image, to avoid downloading 2 different images.
"${ISTIO_BIN_BASE}/istio-iptables" "${@}"
"${ISTIO_BIN_BASE}/istio-iptables.sh" "${@}"
exit 0
fi

if [[ ${1-} != "run" ]] ; then
# clean the previous Istio iptables chains. This part is different from the init image mode,
# where the init container runs in a fresh environment and there cannot be previous Istio chains
"${ISTIO_BIN_BASE}/istio-clean-iptables"
"${ISTIO_BIN_BASE}/istio-clean-iptables.sh"

# Update iptables, based on config file
"${ISTIO_BIN_BASE}/istio-iptables"
"${ISTIO_BIN_BASE}/istio-iptables.sh"
fi
fi

Expand Down

0 comments on commit dc5635b

Please sign in to comment.