Skip to content

Commit

Permalink
Update the location of ipv4 subnet within docker network config
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlycoconuts committed Jul 18, 2024
1 parent 8e413b0 commit 1299fda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/install_metallib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ set -ex
kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.13.5/config/manifests/metallb-native.yaml
kubectl wait pods --all -n metallb-system --for=condition=Ready --timeout 500s

KIND_SUBNET=$(docker network inspect kind | jq '.[0].IPAM.Config[0].Subnet' | sed 's/"//g')
KIND_SUBNET=$(docker network inspect kind | jq '.[0].IPAM.Config[1].Subnet' | sed 's/"//g')
if [[ -z $KIND_SUBNET ]]; then
echo "Could not find kind subnet. Please ensure a kind cluster named kind is present"
exit 1
Expand Down

0 comments on commit 1299fda

Please sign in to comment.