File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,32 @@ tmp_bin=/tmp/cr-tests-bin
41
41
)
42
42
export KUBEBUILDER_ASSETS=" $( ${tmp_bin} /setup-envtest use --use-env -p path " ${ENVTEST_K8S_VERSION} " ) "
43
43
44
+ # HACK
45
+ k8s_clone_dir=$tmp_root /kubernetes
46
+ (
47
+ k8s_repo_url=https://github.com/kubernetes/kubernetes.git
48
+
49
+ echo " Cloning Kube repository from $k8s_repo_url ..."
50
+ git clone $k8s_repo_url $k8s_clone_dir
51
+
52
+ cd $k8s_clone_dir
53
+ echo " Building Kube from source code..."
54
+ make
55
+ )
56
+ k8s_bin_dir=$(
57
+ k8s_output_dir=${k8s_clone_dir} /_output/local/go/bin
58
+ if [ -d " ${k8s_output_dir} " ]; then
59
+ cd ${k8s_output_dir}
60
+ pwd
61
+ else
62
+ echo " Directory ${k8s_output_dir} does not exist."
63
+ exit 1
64
+ fi
65
+ )
66
+ echo " Replacing kube-apiserver binary from ${k8s_bin_dir} to ${KUBEBUILDER_ASSETS} "
67
+ cp -f " ${k8s_bin_dir} /kube-apiserver" " ${KUBEBUILDER_ASSETS} /kube-apiserver"
68
+ # END OF HACK
69
+
44
70
# Run tests.
45
71
${hack_dir} /test-all.sh
46
72
You can’t perform that action at this time.
0 commit comments