-
Notifications
You must be signed in to change notification settings - Fork 29
New Kubernetes Release
The following steps are required to create a new branch for a new Kubernetes release:
-
Determine the version of latest Kubernetes Releases such as "v1.35.0-alpha.1".
-
Click on that release to get to the Github source code. Locate the go.mod to determine the GO version for this new release
-
Create new Label for the new release: "release-1.xx"
-
Create new branch for this new Kubernetes release
- Bring up the top level, default page of this repo
- In the
Branchdrop-down menu, enter the name for the new branch:release-<major>.<minor>where<major>.<minor>is the Kubernetes major and minor version (e.g.release-1.35)
-
Locally check out the new branch and make the following updates:
- Update dependabot.yml configuration
- Update kube-update.yml Github Action workflow
- Update golangci-update.yml Github Action workflow
- Update
go.mod:- Update the GO version
- Update each of the direct
k8s.iomodules to new release/patch level (such as v0.35.0-alpha.1)- NOTE: The k8s.io libraries are
v0.where as the actual Kubernetes release isv1.
- NOTE: The k8s.io libraries are
- Remove all indirect references to the
k8s.iomodules
-
Update the GO version installed on laptop to match this Kubernetes release GO version (it is OK for laptop to be at a newer version of GO)
-
Run:
go mod tidyto download the GO dependencies and refresh thego.sumfile with the new libraries -
Run:
make allto perform a local build of the repo. Fix all errors until the the new branch compiles cleanly. -
Check in / merge the changes to the new branch
-
Make sure the Github actions build the branch cleanly
-
Set the new branch to be the "default" branch. This is done in the repo Settings under the
Generaltab -
Delete files no longer needed in the previous "default" branch:
- .github/workflows/dispatch-pr-create.yml
- .github/workflows/golangci-update.yml
- .github/workflows/kube-update.yml
- .github/dependabot.yml
-
Update the Kubernetes-to-OpenShift-releases Wiki page with the new release
-
Update all references/links on this Wiki page to the new release.
-
Within 24 hours, the kube-update.yml Github Action workflow will run and create a PR to update the remaining files in the new branch to the new Kubernetes release