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