ci: update e2e tests according to compat matrix

Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
This commit is contained in:
Damien Grisonnet
2020-03-31 13:35:26 +02:00
parent ae589e91ce
commit 8961be9639

View File

@@ -13,7 +13,10 @@ chmod +x kubectl
curl -Lo kind https://github.com/kubernetes-sigs/kind/releases/download/v0.6.1/kind-linux-amd64 curl -Lo kind https://github.com/kubernetes-sigs/kind/releases/download/v0.6.1/kind-linux-amd64
chmod +x kind chmod +x kind
./kind create cluster --image=kindest/node:v1.17.0 run_e2e_tests() {
cluster_version=$1
./kind create cluster --image=kindest/node:$cluster_version
export KUBECONFIG="$(./kind get kubeconfig-path)" export KUBECONFIG="$(./kind get kubeconfig-path)"
# create namespace, permissions, and CRDs # create namespace, permissions, and CRDs
@@ -26,3 +29,14 @@ until ./kubectl get servicemonitors --all-namespaces ; do date; sleep 1; echo ""
./kubectl create -f manifests/ ./kubectl create -f manifests/
make test-e2e make test-e2e
./kind delete cluster
}
cluster_compatible_versions=("v1.16.1" "v1.17.0")
for cluster_version in "${cluster_compatible_versions[@]}"
do
run_e2e_tests $cluster_version
done