-
Notifications
You must be signed in to change notification settings - Fork 28
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.37.0-alpha.2".
-
Create new Label for the new release: "release-1.xx"
-
Create a new branch for the 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.37)
-
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 each of the direct
k8s.iomodules to new release/patch level (such as v0.37.0-alpha.2)- 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 each of the direct
-
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
-
Select "Run workflow" in the kube-update GitHub Action workflow to create a PR to update the remaining files in the new branch to the new Kubernetes release. Review and approve the PR.
-
Update the Kubernetes-to-OpenShift-releases Wiki page with the new release
-
Update all references/links on this Wiki page to the new release.