File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,25 @@ k8s_bin_dir=$(
7272echo " Replacing kube-apiserver binary from ${k8s_bin_dir} to ${KUBEBUILDER_ASSETS} "
7373cp -f " ${k8s_bin_dir} /kube-apiserver" " ${KUBEBUILDER_ASSETS} /kube-apiserver"
7474
75+ etcd_download_dir=${tmp_root} /etcd
76+ (
77+ etcd_version=" v3.5.15"
78+ etcd_arch=" linux-amd64"
79+
80+ etcd_download_url=" https://github.com/etcd-io/etcd/releases/download/${etcd_version} /etcd-${etcd_version} -${etcd_arch} .tar.gz"
81+
82+ echo " Downloading etcd ${etcd_version} for ${etcd_arch} ..."
83+ curl -fL ${etcd_download_url} -o etcd-${etcd_version} -${etcd_arch} .tar.gz
84+
85+ echo " Extracting etcd to ${etcd_download_dir} ..."
86+ mkdir -p ${etcd_download_dir}
87+ tar xzvf etcd-${etcd_version} -${etcd_arch} .tar.gz -C ${etcd_download_dir} --strip-components=1
88+
89+ echo " etcd ${etcd_version} for ${etcd_arch} is downloaded and extracted to ${etcd_download_dir} ."
90+ )
91+ echo " Replacing etcd binary from ${etcd_download_dir} to ${KUBEBUILDER_ASSETS} "
92+ cp -f " ${etcd_download_dir} /etcd" " ${KUBEBUILDER_ASSETS} /etcd"
93+
7594echo " Enabling WatchListClient feature"
7695export KUBE_FEATURE_WatchListClient=true
7796# END OF HACK
You can’t perform that action at this time.
0 commit comments