ceph-csi/run-k8s-external-storage-e2e.sh
Madhu Rajanna 364bbb2f2e ci: update path for kubernetes-test-linux
updating the path for
kubernetes-test-linux-amd64.tar.gz as
we are no longer able to pull the file
to the official supported one as mentioned
in kubernetes doc.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2024-09-12 09:40:33 +00:00

32 lines
1.0 KiB
Bash
Executable File

#!/bin/sh
#
# Download the Kubernetes test suite, extract it and run the external-storage suite.
#
# Requirements:
# - KUBE_VERSION needs to be set in the environment (format: "v1.18.5")
# exit on failure
set -e
[ -n "${KUBE_VERSION}" ] || { echo "KUBE_VERSION not set" ; exit 1 ; }
# download and extract the tests
curl -LO "https://dl.k8s.io/${KUBE_VERSION}/kubernetes-test-linux-amd64.tar.gz"
tar xzf kubernetes-test-linux-amd64.tar.gz kubernetes/test/bin/ginkgo kubernetes/test/bin/e2e.test
# e2e depends on a self-contained KUBECONFIG for some reason
KUBECONFIG_TMP="$(mktemp -t kubeconfig.XXXXXXXX)"
kubectl config view --raw --flatten > "${KUBECONFIG_TMP}"
export KUBECONFIG="${KUBECONFIG_TMP}"
for driver in /opt/build/go/src/github.com/ceph/ceph-csi/scripts/k8s-storage/driver-*.yaml
do
kubernetes/test/bin/ginkgo \
--vv \
-focus="External.Storage.*.csi.ceph.com" \
-skip='\[Feature:|\[Disruptive\]|Generic Ephemeral-volume' \
kubernetes/test/bin/e2e.test \
-- \
-storage.testdriver="${driver}"
done