Merge pull request #669 from lilic/test-against-1.19

Test against 1.18 and 1.19
This commit is contained in:
Sergiusz Urbaniak
2020-09-22 10:10:38 +02:00
committed by GitHub
2 changed files with 24 additions and 11 deletions

View File

@@ -96,7 +96,7 @@ The following versions are supported and work as we test against these versions
| `release-0.3` | ✔ | ✔ | ✔ | ✔ | ✗ | ✗ |
| `release-0.4` | ✗ | ✗ | ✔ (v1.16.5+) | ✔ | ✗ | ✗ |
| `release-0.5` | ✗ | ✗ | ✗ | ✗ | ✔ | ✗ |
| `release-0.6` | ✗ | ✗ | ✗ | ✗ | ✔ | |
| `release-0.6` | ✗ | ✗ | ✗ | ✗ | ✔ | |
| `HEAD` | ✗ | ✗ | ✗ | ✗ | ✔ | ✗ |
Note: Due to [two](https://github.com/kubernetes/kubernetes/issues/83778) [bugs](https://github.com/kubernetes/kubernetes/issues/86359) in Kubernetes v1.16.1, and prior to Kubernetes v1.16.5 the kube-prometheus release-0.4 branch only supports v1.16.5 and higher. The `extension-apiserver-authentication-reader` role in the kube-system namespace can be manually edited to include list and watch permissions in order to workaround the second issue with Kubernetes v1.16.2 through v1.16.4.

View File

@@ -13,7 +13,10 @@ chmod +x kubectl
curl -Lo kind https://github.com/kubernetes-sigs/kind/releases/download/v0.7.0/kind-linux-amd64
chmod +x kind
./kind create cluster --image=kindest/node:v1.18.0
run_e2e_tests() {
cluster_version=$1
./kind create cluster --image=kindest/node:$cluster_version
# the default kube config location used by kind
export KUBECONFIG="${HOME}/.kube/config"
@@ -27,3 +30,13 @@ until ./kubectl get servicemonitors --all-namespaces ; do date; sleep 1; echo ""
./kubectl create -f manifests/
make test-e2e
./kind delete cluster
}
cluster_compatible_versions=("v1.18.8" "v1.19.0")
for cluster_version in "${cluster_compatible_versions[@]}"
do
run_e2e_tests $cluster_version
done