diff --git a/workflows/e2e/action.yaml b/workflows/e2e/action.yaml index 4448320..3df09da 100644 --- a/workflows/e2e/action.yaml +++ b/workflows/e2e/action.yaml @@ -9,8 +9,11 @@ inputs: description: "The kind cluster name" required: false default: "greenhouse-remote" - k8s-version: - description: "The Kubernetes version used to spin up clusters" + remote-k8s-version: + description: "The Kubernetes version used to spin up remote cluster" + required: true + admin-k8s-version: + description: "The Kubernetes version used to spin up admin cluster" required: true admin-config: description: "The kind cluster configuration file for admin cluster" @@ -44,10 +47,11 @@ runs: # Create the admin cluster with latest kubernetes version - name: Create Admin Cluster - uses: helm/kind-action@a1b0e391336a6ee6713a0583f8c6240d70863de3 # v1.12.0 + uses: helm/kind-action@92086f6be054225fa813e0a4b13787fc9088faab # v1.13.0 with: + version: 'v0.31.0' cluster_name: ${{ inputs.admin-cluster-name }} - node_image: 'kindest/node:v1.33.4' + node_image: 'kindest/node:${{ inputs.admin-k8s-version }}' config: ${{ inputs.admin-config }} # after admin cluster setup, extract the apiServer CA from kube-root-ca.crt configmap (needed for remote cluster OIDC setup) @@ -68,9 +72,10 @@ runs: # Create the remote cluster with kubernetes version from the matrix - name: Create Remote Cluster - uses: helm/kind-action@a1b0e391336a6ee6713a0583f8c6240d70863de3 # v1.12.0 + uses: helm/kind-action@92086f6be054225fa813e0a4b13787fc9088faab # v1.13.0 with: - node_image: 'kindest/node:${{ inputs.k8s-version }}' + version: 'v0.31.0' + node_image: 'kindest/node:${{ inputs.remote-k8s-version }}' cluster_name: ${{ inputs.remote-cluster-name }} config: ${{ inputs.remote-config }}