From d3d63f1934851c0fef0c65435f745aef81c699c1 Mon Sep 17 00:00:00 2001 From: Marco Iorio Date: Tue, 2 May 2023 08:31:41 +0200 Subject: [PATCH] workflows/clustermesh: set kubectl version to match the k8s one By default, the helm/kind-action action downloads a fixed version of kubectl (v1.23.12 in v1.5.0). Let's configure it so that the kubectl version matches that of the kubernetes cluster we are creating, to ensure better compatibility. Signed-off-by: Marco Iorio --- .github/workflows/conformance-clustermesh-v1.11.yaml | 2 ++ .github/workflows/conformance-clustermesh-v1.12.yaml | 2 ++ .github/workflows/conformance-clustermesh-v1.13.yaml | 2 ++ .github/workflows/conformance-clustermesh.yaml | 2 ++ 4 files changed, 8 insertions(+) diff --git a/.github/workflows/conformance-clustermesh-v1.11.yaml b/.github/workflows/conformance-clustermesh-v1.11.yaml index 791ef89330e7d..4cd18129a71c5 100644 --- a/.github/workflows/conformance-clustermesh-v1.11.yaml +++ b/.github/workflows/conformance-clustermesh-v1.11.yaml @@ -382,6 +382,7 @@ jobs: with: cluster_name: ${{ env.clusterName1 }} version: ${{ env.kind_version }} + kubectl_version: ${{ env.k8s_version }} config: ./.github/kind-config-cluster1.yaml wait: 0 # The control-plane never becomes ready, since no CNI is present @@ -390,6 +391,7 @@ jobs: with: cluster_name: ${{ env.clusterName2 }} version: ${{ env.kind_version }} + kubectl_version: ${{ env.k8s_version }} config: ./.github/kind-config-cluster2.yaml wait: 0 # The control-plane never becomes ready, since no CNI is present diff --git a/.github/workflows/conformance-clustermesh-v1.12.yaml b/.github/workflows/conformance-clustermesh-v1.12.yaml index 0d6f3e5d1126a..9c87060379a45 100644 --- a/.github/workflows/conformance-clustermesh-v1.12.yaml +++ b/.github/workflows/conformance-clustermesh-v1.12.yaml @@ -377,6 +377,7 @@ jobs: with: cluster_name: ${{ env.clusterName1 }} version: ${{ env.kind_version }} + kubectl_version: ${{ env.k8s_version }} config: ./.github/kind-config-cluster1.yaml wait: 0 # The control-plane never becomes ready, since no CNI is present @@ -385,6 +386,7 @@ jobs: with: cluster_name: ${{ env.clusterName2 }} version: ${{ env.kind_version }} + kubectl_version: ${{ env.k8s_version }} config: ./.github/kind-config-cluster2.yaml wait: 0 # The control-plane never becomes ready, since no CNI is present diff --git a/.github/workflows/conformance-clustermesh-v1.13.yaml b/.github/workflows/conformance-clustermesh-v1.13.yaml index 9930104fe433a..98185733d628c 100644 --- a/.github/workflows/conformance-clustermesh-v1.13.yaml +++ b/.github/workflows/conformance-clustermesh-v1.13.yaml @@ -377,6 +377,7 @@ jobs: with: cluster_name: ${{ env.clusterName1 }} version: ${{ env.kind_version }} + kubectl_version: ${{ env.k8s_version }} config: ./.github/kind-config-cluster1.yaml wait: 0 # The control-plane never becomes ready, since no CNI is present @@ -385,6 +386,7 @@ jobs: with: cluster_name: ${{ env.clusterName2 }} version: ${{ env.kind_version }} + kubectl_version: ${{ env.k8s_version }} config: ./.github/kind-config-cluster2.yaml wait: 0 # The control-plane never becomes ready, since no CNI is present diff --git a/.github/workflows/conformance-clustermesh.yaml b/.github/workflows/conformance-clustermesh.yaml index 6bb9da9f4f64e..2e689c5858470 100644 --- a/.github/workflows/conformance-clustermesh.yaml +++ b/.github/workflows/conformance-clustermesh.yaml @@ -368,6 +368,7 @@ jobs: with: cluster_name: ${{ env.clusterName1 }} version: ${{ env.kind_version }} + kubectl_version: ${{ env.k8s_version }} config: ./.github/kind-config-cluster1.yaml wait: 0 # The control-plane never becomes ready, since no CNI is present @@ -376,6 +377,7 @@ jobs: with: cluster_name: ${{ env.clusterName2 }} version: ${{ env.kind_version }} + kubectl_version: ${{ env.k8s_version }} config: ./.github/kind-config-cluster2.yaml wait: 0 # The control-plane never becomes ready, since no CNI is present