From 1bc56fc71ea7a5ff938ee1524b24f390d8cac04f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20K=C5=99epinsk=C3=BD?= Date: Mon, 10 Jan 2022 12:57:28 +0100 Subject: [PATCH] remove iptables cleanup from local-up-cluster.sh - remove root warning --- hack/local-up-cluster.sh | 6 ------ 1 file changed, 6 deletions(-) diff --git a/hack/local-up-cluster.sh b/hack/local-up-cluster.sh index cfda2750448..39f1d70f846 100755 --- a/hack/local-up-cluster.sh +++ b/hack/local-up-cluster.sh @@ -138,10 +138,6 @@ if [ "${CLOUD_PROVIDER}" == "openstack" ]; then fi fi -if [ "$(id -u)" != "0" ]; then - echo "WARNING : This script MAY be run as root for docker socket / iptables functionality; if failures occur, retry as root." 2>&1 -fi - # Stop right away if the build fails set -e @@ -362,8 +358,6 @@ cleanup() [[ -n "${ETCD_DIR-}" ]] && kube::etcd::clean_etcd_dir fi - # Drop the rule we added - iptables -t nat -D OUTPUT -m addrtype --dst-type LOCAL -j DOCKER || true exit 0 }