ceph-csi/vendor/github.com/kubernetes-csi/drivers/hack/get-sanity.sh

13 lines
487 B
Bash
Raw Normal View History

2018-02-15 13:50:31 +00:00
#!/bin/sh
2018-11-26 18:23:56 +00:00
VERSION="v1.0.0-rc2"
2018-02-15 13:50:31 +00:00
SANITYTGZ="csi-sanity-${VERSION}.linux.amd64.tar.gz"
2018-11-26 18:23:56 +00:00
echo "Downloading csi-test from https://github.com/kubernetes-csi/csi-test/releases/download/${VERSION}/${SANITYTGZ}"
curl -s -L "https://github.com/kubernetes-csi/csi-test/releases/download/${VERSION}/${SANITYTGZ}" -o ${SANITYTGZ}
tar xzvf ${SANITYTGZ} -C /tmp && \
rm -f ${SANITYTGZ} && \
rm -f $GOPATH/bin/csi-sanity
cp /tmp/csi-sanity/csi-sanity $GOPATH/bin/csi-sanity && \
rm -rf /tmp/csi-sanity