Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add GOARCH to path for copying kubectl #2943

Merged
merged 1 commit into from
Mar 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion single-node-k8s.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,13 @@ function install_minikube()
MINIKUBE_VERSION="${MINIKUBE_VERSION}" KUBE_VERSION="${k8s_version}" ${GOPATH}/src/github.com/ceph/ceph-csi/scripts/minikube.sh up

# copy kubectl from minikube to /usr/bin
cp ~/.minikube/cache/linux/"${k8s_version}"/kubectl /usr/bin/
if [ -x ~/.minikube/cache/linux/"${k8s_version}"/kubectl ]
then
cp ~/.minikube/cache/linux/"${k8s_version}"/kubectl /usr/bin/
else
# minikube 1.25.2 adds the GOARCH to the path ("amd64" in our CI)
cp ~/.minikube/cache/linux/amd64/"${k8s_version}"/kubectl /usr/bin/
fi

# scan for extra disks
minikube ssh 'echo 1 | sudo tee /sys/bus/pci/rescan > /dev/null ; dmesg | grep virtio_blk'
Expand Down