File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ OUTPOST_INSTANCE_TYPE=${OUTPOST_INSTANCE_TYPE:-${INSTANCE_TYPE}}
3535# kops: must include patch version (e.g. 1.19.1)
3636# eksctl: mustn't include patch version (e.g. 1.19)
3737# NOTE: Keep KOPS at v1.29.x until ELB usage bug fixed
38- K8S_VERSION_KOPS=${K8S_VERSION_KOPS:- 1.29.6 }
38+ K8S_VERSION_KOPS=${K8S_VERSION_KOPS:- 1.31.1 }
3939K8S_VERSION_EKSCTL=${K8S_VERSION_EKSCTL:- 1.30}
4040
4141EBS_INSTALL_SNAPSHOT=${EBS_INSTALL_SNAPSHOT:- " true" }
Original file line number Diff line number Diff line change 1919
2020set -euo pipefail
2121
22+ export KOPS_RUN_TOO_NEW_VERSION=true
23+
2224function kops_create_cluster() {
2325 CLUSTER_NAME=${1}
2426 KOPS_BIN=${2}
Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ GOMPLATE_VERSION="v4.1.0"
3333# https://github.com/helm/helm
3434HELM_VERSION=" v3.15.4"
3535# https://github.com/kubernetes/kops
36- # NOTE: Keep at v1.29.0 until ELB usage bug fixed
37- KOPS_VERSION= " v1.29.0 "
36+ # NOTE: We pin kops to a commit instead of a release to support newer versions of k8s earlier
37+ KOPS_COMMIT= " 2f877fcf5755b8c6f6a2d937cb1f62dea3a9536a "
3838# https://pkg.go.dev/sigs.k8s.io/kubetest2?tab=versions
3939KUBETEST2_VERSION=" v0.0.0-20240703180642-53f3d216ad9f"
4040# https://github.com/golang/mock
@@ -153,9 +153,10 @@ function install_helm() {
153153}
154154
155155function install_kops() {
156+ # Build from source so we can test latest Kubernetes version earlier.
156157 INSTALL_PATH=" ${1} "
157158
158- install_binary " ${INSTALL_PATH} " " https://github.com/kubernetes/ kops/releases/download/ ${KOPS_VERSION} / kops- ${OS} - ${ARCH} " " kops "
159+ install_go " ${INSTALL_PATH} " " k8s.io/ kops/cmd/ kops@ ${KOPS_COMMIT} "
159160}
160161
161162function install_kubetest2() {
You can’t perform that action at this time.
0 commit comments