Skip to content

Commit

Permalink
Create ADR for branching strategy (#10147)
Browse files Browse the repository at this point in the history
Signed-off-by: rancher-max <max.ross@suse.com>
  • Loading branch information
rancher-max authored May 24, 2024
1 parent aa36341 commit 423675b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docs/adrs/gh-branch-strategy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Branching Strategy in Github

Proposal Date: 2024-05-23

## Status

Accepted

## Context

K3s is released at the same cadence as upstream Kubernetes. This requires management of multiple versions at any given point in time. The current branching strategy uses `release-v[MAJOR].[MINOR]`, with the `master` branch corresponding to the highest version released based on [semver](https://semver.org/). Github's Tags are then used to cut releases, which are just point-in-time snapshots of the specified branch at a given point. As there is the potential for bugs and regressions to be on present on any given branch, this branching and release strategy requires a code freeze to QA the branch without new potentially breaking changes going in.

## Decision
All code changes go into the `master` branch. We maintain branches for all current release versions in the format `release-v[MAJOR].[MINOR]`. When changes made in master are necessary in a release, they should be backported directly into the release branches. If ever there are changes required only in the release branches and not in master, such as when bumping the kubernetes version from upstream, those can be made directly into the release branches themselves.

## Consequences

- Allows for constant development, with code freeze only relevant for the release branches.
- This requires maintaining one additional branch than the current workflow, which also means one additional issue.
- Testing would be more constant from the master branch.
- Minor release captain will have to cut the new branch as soon as they bring in that new minor version.

0 comments on commit 423675b

Please sign in to comment.