From fa9991f929622047d4073a48989b6daef43633b3 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Evrard Date: Fri, 28 Aug 2020 14:05:33 +0200 Subject: [PATCH] Increase kubernetes versions test matrix for smoke tests This allows us to test this branch with multiple kubernetes versions. --- .../{kind-cluster.yaml => kind-cluster-1.17.yaml} | 5 +++++ .github/kind-cluster-1.18.yaml | 13 +++++++++++++ .github/kind-cluster-1.19.yaml | 13 +++++++++++++ .github/workflows/smoke-tests.yml | 8 +++++++- 4 files changed, 38 insertions(+), 1 deletion(-) rename .github/{kind-cluster.yaml => kind-cluster-1.17.yaml} (50%) create mode 100644 .github/kind-cluster-1.18.yaml create mode 100644 .github/kind-cluster-1.19.yaml diff --git a/.github/kind-cluster.yaml b/.github/kind-cluster-1.17.yaml similarity index 50% rename from .github/kind-cluster.yaml rename to .github/kind-cluster-1.17.yaml index f30e384..32d235f 100644 --- a/.github/kind-cluster.yaml +++ b/.github/kind-cluster-1.17.yaml @@ -2,7 +2,12 @@ kind: Cluster apiVersion: kind.x-k8s.io/v1alpha4 nodes: - role: control-plane + image: kindest/node:v1.17.5 - role: control-plane + image: kindest/node:v1.17.5 - role: control-plane + image: kindest/node:v1.17.5 - role: worker + image: kindest/node:v1.17.5 - role: worker + image: kindest/node:v1.17.5 diff --git a/.github/kind-cluster-1.18.yaml b/.github/kind-cluster-1.18.yaml new file mode 100644 index 0000000..699f25a --- /dev/null +++ b/.github/kind-cluster-1.18.yaml @@ -0,0 +1,13 @@ +kind: Cluster +apiVersion: kind.x-k8s.io/v1alpha4 +nodes: +- role: control-plane + image: kindest/node:v1.18.8 +- role: control-plane + image: kindest/node:v1.18.8 +- role: control-plane + image: kindest/node:v1.18.8 +- role: worker + image: kindest/node:v1.18.8 +- role: worker + image: kindest/node:v1.18.8 diff --git a/.github/kind-cluster-1.19.yaml b/.github/kind-cluster-1.19.yaml new file mode 100644 index 0000000..94fba26 --- /dev/null +++ b/.github/kind-cluster-1.19.yaml @@ -0,0 +1,13 @@ +kind: Cluster +apiVersion: kind.x-k8s.io/v1alpha4 +nodes: +- role: control-plane + image: kindest/node:v1.19.0 +- role: control-plane + image: kindest/node:v1.19.0 +- role: control-plane + image: kindest/node:v1.19.0 +- role: worker + image: kindest/node:v1.19.0 +- role: worker + image: kindest/node:v1.19.0 diff --git a/.github/workflows/smoke-tests.yml b/.github/workflows/smoke-tests.yml index 6f4a7e4..405d506 100644 --- a/.github/workflows/smoke-tests.yml +++ b/.github/workflows/smoke-tests.yml @@ -17,6 +17,12 @@ on: jobs: deploy-manifests: runs-on: ubuntu-latest + strategy: + matrix: + kubernetes-version: + - 1.17 + - 1.18 + - 1.19 steps: - name: Checkout uses: actions/checkout@v2 @@ -35,7 +41,7 @@ jobs: - name: Create 5 node kind cluster uses: helm/kind-action@master with: - config: .github/kind-cluster.yaml + config: .github/kind-cluster-${{ matrix.kubernetes-version}}.yaml - name: Deploy kured on default namespace with its helm chart run: |