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 @@ -81,6 +81,25 @@ k8s_bin_dir=$(
81
81
echo " Replacing kube-apiserver binary from ${k8s_bin_dir} to ${KUBEBUILDER_ASSETS} "
82
82
cp -f " ${k8s_bin_dir} /kube-apiserver" " ${KUBEBUILDER_ASSETS} /kube-apiserver"
83
83
84
+ etcd_download_dir=${tmp_root} /etcd
85
+ (
86
+ etcd_version=" v3.5.15"
87
+ etcd_arch=" linux-amd64"
88
+
89
+ etcd_download_url=" https://github.com/etcd-io/etcd/releases/download/${etcd_version} /etcd-${etcd_version} -${etcd_arch} .tar.gz"
90
+
91
+ echo " Downloading etcd ${etcd_version} for ${etcd_arch} ..."
92
+ curl -fL ${etcd_download_url} -o etcd-${etcd_version} -${etcd_arch} .tar.gz
93
+
94
+ echo " Extracting etcd to ${etcd_download_dir} ..."
95
+ mkdir -p ${etcd_download_dir}
96
+ tar xzvf etcd-${etcd_version} -${etcd_arch} .tar.gz -C ${etcd_download_dir} --strip-components=1
97
+
98
+ echo " etcd ${etcd_version} for ${etcd_arch} is downloaded and extracted to ${etcd_download_dir} ."
99
+ )
100
+ echo " Replacing etcd binary from ${etcd_download_dir} to ${KUBEBUILDER_ASSETS} "
101
+ cp -f " ${etcd_download_dir} /etcd" " ${KUBEBUILDER_ASSETS} /etcd"
102
+
84
103
echo " Enabling WatchListClient feature"
85
104
export KUBE_FEATURE_WatchListClient=true
86
105
# END OF HACK
You can’t perform that action at this time.
0 commit comments