mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-10 00:10:20 +00:00
ci: add GOARCH to path for copying kubectl
minikube 1.25.2 moved the downloaded kubectl and other binaries to a new subdir; it now includes runtime.GOARCH as an extra component. See-also: kubernetes/minikube#13539 Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
ed95c4aa78
commit
1101ec0c8d
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user