Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade k8s dependencies to 1.26.15 #928

Merged
merged 16 commits into from
Jun 17, 2024
Merged

Upgrade k8s dependencies to 1.26.15 #928

merged 16 commits into from
Jun 17, 2024

Conversation

SergeyMelnikov
Copy link
Contributor

@SergeyMelnikov SergeyMelnikov commented May 7, 2024

The plan is after all clusters are upgraded to rebase this on top of main and merge.

  • currently based on main
  • uses 1.26 k3d, kind, kuttl versions for tests
  • cluster-autoscaler patch just works with the new version

cc: https://github.com/neondatabase/cloud/issues/7922

@SergeyMelnikov SergeyMelnikov changed the title Upgrade k8s depdendencies to 1.26.15 Upgrade k8s dependencies to 1.26.15 May 7, 2024
@SergeyMelnikov SergeyMelnikov force-pushed the sergey/k8s-1.26.15 branch 2 times, most recently from 4ed87d2 to ec153e3 Compare May 8, 2024 09:17
@SergeyMelnikov SergeyMelnikov changed the title Upgrade k8s dependencies to 1.26.15 Upgrade v0.28.1 k8s dependencies to 1.26.15 May 8, 2024
@bayandin bayandin changed the title Upgrade v0.28.1 k8s dependencies to 1.26.15 Upgrade v1.25.16 k8s dependencies to 1.26.15 May 20, 2024
SergeyMelnikov added a commit that referenced this pull request Jun 6, 2024
When upgrading k3d cluster to 1.26 in
#928 k3d cluster nodes
are getting renamed into `K3s v1.26.15+k3s1` instead of `K3s dev`.
We rely on this to find containerd socket in e2e tests, so they breaks.
Let's detect if we are running inside k3d cluster using `K3s` prefix.
@sharnoff sharnoff force-pushed the sergey/k8s-1.26.15 branch from b1f1ec6 to ea0118e Compare June 9, 2024 00:49
@sharnoff
Copy link
Member

sharnoff commented Jun 9, 2024

Rebased onto current main (3ac5841), which is now v0.30.0.
I also cut an additional release v0.30.0-k8s-1.26 matching latest commit on this branch (ea0118e).

@Omrigan Omrigan force-pushed the sergey/k8s-1.26.15 branch from ea0118e to e149650 Compare June 10, 2024 14:01
@SergeyMelnikov SergeyMelnikov marked this pull request as ready for review June 14, 2024 14:19
@SergeyMelnikov SergeyMelnikov requested a review from sharnoff June 14, 2024 14:20
Copy link
Member

@sharnoff sharnoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebased onto main, found some other places that need updating, with rg '1\.25':

  • in kind/config.yaml, the kindest/node image versions
  • in Makefile, ENVTEST_K8S_VERSION and KUBECTL_VERSION
  • in neonvm/runner/Dockerfile, crictl VERSION

edit: Actually there's also some with rg '0\.25':

  • in Makefile, CODE_GENERATOR_VERSION

edit: and there's even more, that don't have regular versions:

  • in Makefile, CONTROLLER_TOOLS_VERSION

There's also some docs where the version could be updated, but 🤷

@@ -42,7 +42,7 @@ $ # create a temporary directory for kubernetes/autoscaler
$ tmpdir=$(mktemp -d | tee /dev/tty)
/tmp/tmp./tmp/tmp.MCMXmnprG0
$ # clone the source repo
$ git clone --quiet --branch $(cat cluster-autoscaler/ca.tag) https://github.com/kubernetes/autsocaler $tmpdir
$ git clone --quiet --branch $(cat cluster-autoscaler/ca.tag) https://github.com/kubernetes/autoscaler $tmpdir
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops! 🤦 😅

@sharnoff sharnoff force-pushed the sergey/k8s-1.26.15 branch from e149650 to fb017c3 Compare June 16, 2024 20:35
@sharnoff
Copy link
Member

Updates:

  • Bumped versions of a few things (crictl, envtest, kubectl, code generator, kind, controller-tools)
  • Added notes to a few others where the versions are already ok (mostly so that it shows up in searches)

Also, triggered e2e tests on kind, here: https://github.com/neondatabase/autoscaling/actions/runs/9539100392

Copy link
Member

@sharnoff sharnoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

e2e-kind succeeded: https://github.com/neondatabase/autoscaling/actions/runs/9539279238

Looks all good to me; @SergeyMelnikov & @Omrigan could you double-check my recent changes? fb017c3..7c09c5b

@SergeyMelnikov SergeyMelnikov changed the title Upgrade v1.25.16 k8s dependencies to 1.26.15 Upgrade k8s dependencies to 1.26.15 Jun 17, 2024
@SergeyMelnikov
Copy link
Contributor Author

SergeyMelnikov commented Jun 17, 2024

Looks good to me, and given all clusters were upgraded, I'm rebasing to main and merging this PR

@SergeyMelnikov SergeyMelnikov force-pushed the sergey/k8s-1.26.15 branch 2 times, most recently from 09e2172 to 7c09c5b Compare June 17, 2024 12:29
sharnoff added 9 commits June 17, 2024 14:30
We could have kept kind at v0.20.0 and used nodes v1.26.0, but I figured
it's better for consistency to use v1.26.15 in the kind nodes as well.
Genuinely shocked that makefile semantics includes the spaces in the
variable, but hey.
maybe we should change it, but that should be a separate PR.
@SergeyMelnikov SergeyMelnikov merged commit 1ab666f into main Jun 17, 2024
16 checks passed
@SergeyMelnikov SergeyMelnikov deleted the sergey/k8s-1.26.15 branch June 17, 2024 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants