Skip to content

Commit b7ebff7

Browse files
committed
replace etcd
1 parent acad615 commit b7ebff7

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

hack/check-everything.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,25 @@ k8s_bin_dir=$(
7373
echo "Replacing kube-apiserver binary from ${k8s_bin_dir} to ${KUBEBUILDER_ASSETS}"
7474
cp -f "${k8s_bin_dir}/kube-apiserver" "${KUBEBUILDER_ASSETS}/kube-apiserver"
7575

76+
etcd_download_dir=${tmp_root}/etcd
77+
(
78+
etcd_version="v3.5.15"
79+
etcd_arch="linux-amd64"
80+
81+
etcd_download_url="https://github.com/etcd-io/etcd/releases/download/${etcd_version}/etcd-${etcd_version}-${etcd_arch}.tar.gz"
82+
83+
echo "Downloading etcd ${etcd_version} for ${etcd_arch}..."
84+
curl -fL ${etcd_download_url} -o etcd-${etcd_version}-${etcd_arch}.tar.gz
85+
86+
echo "Extracting etcd to ${etcd_download_dir}..."
87+
mkdir -p ${etcd_download_dir}
88+
tar xzvf etcd-${etcd_version}-${etcd_arch}.tar.gz -C ${etcd_download_dir} --strip-components=1
89+
90+
echo "etcd ${etcd_version} for ${etcd_arch} is downloaded and extracted to ${etcd_download_dir}."
91+
)
92+
echo "Replacing etcd binary from ${etcd_download_dir} to ${KUBEBUILDER_ASSETS}"
93+
cp -f "${etcd_download_dir}/etcd" "${KUBEBUILDER_ASSETS}/etcd"
94+
7695
echo "Enabling WatchListClient feature"
7796
export KUBE_FEATURE_WatchListClient=true
7897
# END OF HACK

0 commit comments

Comments
 (0)