Skip to content

Commit

Permalink
Merge pull request #2160 from AndrewSirenko/kops-k8s-131
Browse files Browse the repository at this point in the history
Add K8s 1.31 to CI by pinning kops commit instead of version
  • Loading branch information
k8s-ci-robot authored Oct 17, 2024
2 parents 8722289 + d1d1932 commit ea90143
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion hack/e2e/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ OUTPOST_INSTANCE_TYPE=${OUTPOST_INSTANCE_TYPE:-${INSTANCE_TYPE}}
# kops: must include patch version (e.g. 1.19.1)
# eksctl: mustn't include patch version (e.g. 1.19)
# NOTE: Keep KOPS at v1.29.x until ELB usage bug fixed
K8S_VERSION_KOPS=${K8S_VERSION_KOPS:-1.29.6}
K8S_VERSION_KOPS=${K8S_VERSION_KOPS:-1.31.1}
K8S_VERSION_EKSCTL=${K8S_VERSION_EKSCTL:-1.31}

EBS_INSTALL_SNAPSHOT=${EBS_INSTALL_SNAPSHOT:-"true"}
Expand Down
1 change: 1 addition & 0 deletions hack/e2e/kops/kops.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ function kops_create_cluster() {
KOPS_PATCH_FILE=${10}
KOPS_PATCH_NODE_FILE=${11}
KOPS_STATE_FILE=${12}
declare -x KOPS_TOO_NEW_VERSION=true

if kops_cluster_exists "${CLUSTER_NAME}" "${KOPS_BIN}" "${KOPS_STATE_FILE}"; then
loudecho "Replacing cluster $CLUSTER_NAME with $CLUSTER_FILE"
Expand Down
8 changes: 5 additions & 3 deletions hack/tools/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ GOMPLATE_VERSION="v4.1.0"
# https://github.com/helm/helm
HELM_VERSION="v3.16.2"
# https://github.com/kubernetes/kops
# NOTE: Keep at v1.29.0 until ELB usage bug fixed
KOPS_VERSION="v1.29.0"
# NOTE: We pin kops to a commit instead of a release to support newer versions of k8s earlier
KOPS_COMMIT="aaa35cc5304f9b191ca9828b552e62bddc5b263a"
# https://pkg.go.dev/sigs.k8s.io/kubetest2?tab=versions
KUBETEST2_VERSION="v0.0.0-20240905095256-f6e8664cd2b1"
# https://github.com/golang/mock
Expand Down Expand Up @@ -153,9 +153,11 @@ function install_helm() {
}

function install_kops() {
# Build from source so we can test latest Kubernetes version earlier.
INSTALL_PATH="${1}"

install_binary "${INSTALL_PATH}" "https://github.com/kubernetes/kops/releases/download/${KOPS_VERSION}/kops-${OS}-${ARCH}" "kops"
# Lower max processes to avoid oom-killed
GOMAXPROCS=1 install_go "${INSTALL_PATH}" "k8s.io/kops/cmd/kops@${KOPS_COMMIT}"
}

function install_kubetest2() {
Expand Down

0 comments on commit ea90143

Please sign in to comment.