Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/common-go/README.md
2492 views

How to upgrade Kubernetes dependencies

General steps:

  1. Check https://github.com/kubernetes/kubernetes/releases for the Kubernetes version. E.g. we use EKS 1.31, latest 1.31 Kubernetes release is 1.31.8 which is Kubernetes version 31.8. Run ./go-get-kubernetes.sh 31.8.

  2. modify target versions in go-update-wc-deps.sh

  3. run ./go-update-wc-deps.sh

  4. if it fails, fix the test/code, and run it again until all tests are good - except install/installer

  5. take care of install/installer

  6. manually verify that the go.mod has the target versions set, and if not, adjust manually (not sure why these get overriden there)

  7. make sure helm.sh/helm/v3 is set to a compatible version (refer to https://github.com/helm/helm/releases/ to see which release bumps "k8s-io" to which version)

  8. test with go mod tidy && go test ./... until it succeeds

gpl: I just noticed that probably go-get-kubernetes.sh was meant for bumping kubernetes versions in common-go - which I did manually. So probably that should be the very first step.