From 830d56dac1c302753cd0adac83ff7c03daf72576 Mon Sep 17 00:00:00 2001 From: Dario Tranchitella Date: Fri, 13 Feb 2026 11:48:29 +0100 Subject: [PATCH] chore(makefile): using only ipv4 for metallb in ci (#1076) Signed-off-by: Dario Tranchitella --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d97a158..0835eed 100644 --- a/Makefile +++ b/Makefile @@ -236,7 +236,12 @@ metallb: kubectl apply -f "https://raw.githubusercontent.com/metallb/metallb/$$(curl "https://api.github.com/repos/metallb/metallb/releases/latest" | jq -r ".tag_name")/config/manifests/metallb-native.yaml" kubectl wait pods -n metallb-system -l app=metallb,component=controller --for=condition=Ready --timeout=10m kubectl wait pods -n metallb-system -l app=metallb,component=speaker --for=condition=Ready --timeout=2m - cat hack/metallb.yaml | sed -E "s|172.19|$$(docker network inspect -f '{{range .IPAM.Config}}{{.Gateway}}{{end}}' kind | sed -E 's|^([0-9]+\.[0-9]+)\..*$$|\1|g')|g" | kubectl apply -f - + @IPV4_PREFIX=$$(docker network inspect kind \ + -f '{{range .IPAM.Config}}{{println .Subnet " " .Gateway}}{{end}}' \ + | grep -v ':' \ + | awk '{print $$2}' \ + | sed -E 's|^([0-9]+\.[0-9]+)\..*$$|\1|'); \ + sed -E "s|172\.19|$$IPV4_PREFIX|g" hack/metallb.yaml | kubectl apply -f - cert-manager: $(HELM) repo add jetstack https://charts.jetstack.io