Skip to content

Commit

Permalink
Merge pull request #1457 from mrueg/e2e-multiple-versions
Browse files Browse the repository at this point in the history
e2e: Test against multiple versions of k8s at the same time
  • Loading branch information
k8s-ci-robot committed Apr 23, 2021
2 parents 5a07009 + 5711402 commit 0969433
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,13 @@ jobs:
ci-e2e-tests:
name: ci-e2e-tests
runs-on: ubuntu-latest
strategy:
matrix:
cluster_version:
- 'v1.18.0'
- 'v1.19.0'
- 'v1.20.0'
- 'v1.21.0'
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
Expand All @@ -208,5 +215,7 @@ jobs:
make install-tools
- name: End-to-end tests
env:
KUBERNETES_VERSION: ${{cluster_version}}
run: |
make e2e
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ All additional compatibility is only best effort, or happens to still/already be

At most, 5 kube-state-metrics and 5 [kubernetes releases](https://github.com/kubernetes/kubernetes/releases) will be recorded below.

| kube-state-metrics | **Kubernetes 1.16** | **Kubernetes 1.17** | **Kubernetes 1.18** | **Kubernetes 1.19** | **Kubernetes 1.20** |
|--------------------|---------------------|---------------------|----------------------|----------------------|-----------------------|
| kube-state-metrics | **Kubernetes 1.17** | **Kubernetes 1.18** | **Kubernetes 1.19** | **Kubernetes 1.20** | **Kubernetes 1.21** |
|--------------------|---------------------|----------------------|----------------------|----------------------|----------------------|
| **v1.8.0** | - | - | - | - | - |
| **v1.9.8** | | - | - | - | - |
| **v2.0.0** | - | -/✓ | -/|| |
| **master** | - | -/✓ | -/✓ |||
| **v1.9.8** | - | - | - | - | - |
| **v2.0.0** | -/✓ | -/✓ | || -/✓ |
| **master** | -/✓ | -/✓ | |||
- `` Fully supported version range.
- `-` The Kubernetes cluster has features the client-go library can't use (additional API objects, deprecated APIs, etc).

Expand Down
4 changes: 2 additions & 2 deletions tests/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ case $(uname -m) in
esac

NODE_IMAGE_NAME="docker.io/kindest/node"
KUBERNETES_VERSION=v1.20.0
KUBERNETES_VERSION=${KUBERNETES_VERSION:-"v1.20.0"}
KUBE_STATE_METRICS_LOG_DIR=./log
KUBE_STATE_METRICS_CURRENT_IMAGE_NAME="k8s.gcr.io/kube-state-metrics/kube-state-metrics"
KUBE_STATE_METRICS_IMAGE_NAME="k8s.gcr.io/kube-state-metrics/kube-state-metrics-${ARCH}"
Expand Down Expand Up @@ -69,7 +69,7 @@ touch "${HOME}"/.kube/config

export KUBECONFIG=$HOME/.kube/config

kind create cluster --image=${NODE_IMAGE_NAME}:${KUBERNETES_VERSION}
kind create cluster --image="${NODE_IMAGE_NAME}:${KUBERNETES_VERSION}"

kind export kubeconfig

Expand Down

0 comments on commit 0969433

Please sign in to comment.