Skip to content

Commit

Permalink
Merge pull request #6939 from cert-manager-bot/cherry-pick-6938-to-re…
Browse files Browse the repository at this point in the history
…lease-1.13

[release-1.13] Remove docker custom network hack which has been moved to the test runner
  • Loading branch information
cert-manager-prow[bot] committed Apr 22, 2024
2 parents 6952715 + fd6a8c2 commit 0ddc11f
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions make/cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,26 +125,6 @@ if [ -n "$show_image" ]; then
fi

setup_kind() {
# When running in our CI environment the Docker network's subnet choice will
# cause issues with routing, which can manifest in errors such as this one:
#
# dial tcp: lookup charts.jetstack.io on 10.8.240.10:53: read udp 10.8.0.2:54823->10.8.240.10:53: i/o timeout
#
# as seen in the build [1]. We create this custom network as a workaround
# until we have a way to properly patch this.
#
# [1]: https://prow.build-infra.jetstack.net/view/gs/jetstack-logs/pr-logs/pull/cert-manager_approver-policy/36/pull-cert-manager-approver-policy-smoke/1447565895923666944#1:build-log.txt%3A222
if printenv CI >/dev/null; then
if ! docker network inspect kind >/dev/null 2>&1; then
docker network create --driver=bridge --subnet=192.168.0.0/16 --gateway 192.168.0.1 kind
fi

# Wait for the network to be created so kind does not overwrite it.
while ! docker network inspect kind >/dev/null; do
sleep 100ms
done
fi

# (1) Does the kind cluster already exist?
if ! kind get clusters -q | grep -q "^$kind_cluster_name\$"; then
trace kind create cluster --config "make/config/kind/cluster.yaml" \
Expand Down

0 comments on commit 0ddc11f

Please sign in to comment.