Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade metallb #1136

Merged
merged 3 commits into from
Jun 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions hack/setup-kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,9 @@ echo '::endgroup::'
# Setup metallb
#
#############################################################
echo '::group:: Setup metallb'
echo '::group:: Setup metallb 0.14.5'

kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.13.5/config/manifests/metallb-native.yaml
kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.14.5/config/manifests/metallb-native.yaml
kubectl create secret generic -n metallb-system memberlist --from-literal=secretkey="$(openssl rand -base64 128)"

# Wait for Metallb to be ready (or webhook will reject CRDs)
Expand All @@ -222,7 +222,7 @@ done
# And allow for few seconds for things to settle just to make sure things are up
sleep 5

network=$(docker network inspect kind -f "{{(index .IPAM.Config 0).Subnet}}" | cut -d '.' -f1,2)
network=$(docker network inspect kind | jq -r '.[0].IPAM.Config[] | select(.Subnet | test("^[0-9]+\\.")) | .Subnet' | cut -d '.' -f1,2)
cat <<EOF >>./metallb-crds.yaml
apiVersion: metallb.io/v1beta1
kind: IPAddressPool
Expand Down
Loading