Repository: kubeflow/training-operator (language: python)

Issue:
Change Kubernetes version for test
/kind discussion

According to [this](https://kubernetes.io/releases/), it seems that K8s v1.21 reached EOL on 2022-06-28.
So, we need to change the below K8s versions for tests.

- https://github.com/kubeflow/training-operator/blob/8c9b33c6a381913c9bd9f1e16d2f1a4ba669071e/.github/workflows/integration-tests.yaml#L11
- https://github.com/kubeflow/training-operator/blob/8c9b33c6a381913c9bd9f1e16d2f1a4ba669071e/.github/workflows/unittests.yaml#L20

@kubeflow/wg-training-leads What do you think?



Discussion / hints:
Yes. We should upgrade the versions as in Katib
Thanks for your response.
I will create the PR.

/assign


I will create the PR once #1663 is merged.

Fix patch:
diff --git a/Makefile b/Makefile
index 46b71d718c..149ae4fcac 100644
--- a/Makefile
+++ b/Makefile
@@ -63,7 +63,7 @@ ifeq ($(GOLANGCI_LINT),)
 endif
 	golangci-lint run --timeout 5m --go 1.19 ./...
 
-ENVTEST_K8S_VERSION ?= 1.22
+ENVTEST_K8S_VERSION ?= 1.24
 HAS_SETUP_ENVTEST := $(shell command -v setup-envtest;)
 
 testall: manifests generate fmt vet golangci-lint test ## Run tests.


Test patch:
diff --git a/.github/workflows/integration-tests.yaml b/.github/workflows/integration-tests.yaml
index b3024afa91..3496f33182 100644
--- a/.github/workflows/integration-tests.yaml
+++ b/.github/workflows/integration-tests.yaml
@@ -8,16 +8,17 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        kubernetes-version: ["v1.21.12", "v1.22.9", "v1.23.6"]
+        kubernetes-version: ["v1.22.15", "v1.23.12", "v1.24.6"]
     steps:
       - name: Checkout
         uses: actions/checkout@v2
       
       - name: Create k8s Kind Cluster
-        uses: helm/kind-action@v1.2.0
+        uses: helm/kind-action@v1.3.0
         with:
           node_image: kindest/node:${{ matrix.kubernetes-version }}
           cluster_name: training-operator-cluster
+          kubectl_version: ${{ matrix.kubernetes-version }}
 
       - name: Build training-operator
         run: |
diff --git a/.github/workflows/unittests.yaml b/.github/workflows/unittests.yaml
index c6a446631f..0abb098fb9 100644
--- a/.github/workflows/unittests.yaml
+++ b/.github/workflows/unittests.yaml
@@ -17,7 +17,7 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        kubernetes-version: ["1.21.4", "1.22.1", "1.23.5"]
+        kubernetes-version: ["1.22.1", "1.23.5", "1.24.2"]
 
     steps:
       - name: Check out code