From fa1832484d13b6c16b009ca625d97b6a1f95c2b5 Mon Sep 17 00:00:00 2001 From: Timothy-Dougherty Date: Thu, 19 Jun 2025 11:48:23 +1000 Subject: [PATCH] handling the etcd 3.6+ build directory location change --- cluster/images/etcd/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cluster/images/etcd/Makefile b/cluster/images/etcd/Makefile index 85aad78e123..ce4274215c6 100644 --- a/cluster/images/etcd/Makefile +++ b/cluster/images/etcd/Makefile @@ -167,6 +167,9 @@ else if [ $$(echo $$version | cut -d. -f2) -gt 3 ]; then \ etcd_build_dir="/go/src/go.etcd.io/etcd"; \ fi; \ + if [ $$(echo $$version | cut -d. -f2) -gt 5 ]; then \ + etcd_build_dir="/go/src/go.etcd.io/etcd/scripts"; \ + fi; \ docker run --rm --interactive -v $${etcd_release_tmp_dir}:/etcdbin golang:$(GOLANG_VERSION)$(DOCKER_VOL_OPTS) /bin/bash -c \ "git clone https://github.com/etcd-io/etcd $$etcd_build_dir \ && cd $$etcd_build_dir \