Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#1534 from panzhc/patch-1
Browse files Browse the repository at this point in the history
Fix the problem of container restart failure
  • Loading branch information
BenTheElder authored Apr 30, 2020
2 parents d1c398f + 9086edb commit bd9e12a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions images/base/files/usr/local/bin/entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ enable_network_magic(){
old_ipv4=$(cat /kind/old-ipv4)
echo "INFO: Detected old IPv4 address: ${old_ipv4}" >&2
# sanity check that we have a current address
if [[ -n $curr_ipv4 ]]; then
if [[ -z $curr_ipv4 ]]; then
echo "ERROR: Have an old IPv4 address but no current IPv4 address (!)" >&2
exit 1
fi
Expand All @@ -207,7 +207,7 @@ enable_network_magic(){
old_ipv6=$(cat /kind/old-ipv6)
echo "INFO: Detected old IPv6 address: ${old_ipv6}" >&2
# sanity check that we have a current address
if [[ -n $curr_ipv6 ]]; then
if [[ -z $curr_ipv6 ]]; then
echo "ERROR: Have an old IPv6 address but no current IPv6 address (!)" >&2
fi
# kubernetes manifests are only present on control-plane nodes
Expand Down

0 comments on commit bd9e12a

Please sign in to comment.