Skip to content

Commit 0bfb013

Browse files
vatsalparekhtomleb
andauthored
Implement versioning ADR (#511)
* Add release GHA Signed-off-by: Vatsal Parekh <[email protected]> * Add Versioning ADR doc Signed-off-by: Vatsal Parekh <[email protected]> * Update VERSION.md Co-authored-by: Tom Lebreux <[email protected]> --------- Signed-off-by: Vatsal Parekh <[email protected]> Co-authored-by: Tom Lebreux <[email protected]>
1 parent 1fbf9bd commit 0bfb013

File tree

3 files changed

+50
-0
lines changed

3 files changed

+50
-0
lines changed

.github/workflows/release.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
steps:
14+
- name : Checkout repository
15+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
16+
17+
- name: Create release on Github
18+
env:
19+
GH_TOKEN: ${{ github.token }}
20+
run: |
21+
if [[ "${{ github.ref_name }}" == *-rc* ]]; then
22+
gh --repo "${{ github.repository }}" release create ${{ github.ref_name }} --verify-tag --generate-notes --prerelease
23+
else
24+
gh --repo "${{ github.repository }}" release create ${{ github.ref_name }} --verify-tag --generate-notes
25+
fi

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,3 +361,7 @@ type FooCache interface {
361361
type FooIndexer func(obj *v1alpha1.Foo) ([]string, error)
362362

363363
```
364+
365+
# Versioning
366+
367+
See [VERSION.md](VERSION.md).

VERSION.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Each wrangler major version supports a range of Kubernetes minor versions. The range supported by each major release line is include below. Wrangler follows the following rules for changes between major/minor/patch:
2+
3+
<ins>Major Version Increases</ins>:
4+
- Support for a kubernetes version is explicitly removed (note that this means that wrangler uses a feature that does not work on this version).
5+
- A breaking change is made, which is not necessary to resolve a defect.
6+
7+
<ins>Minor Version Increases</ins>:
8+
- Support for a kubernetes version is added.
9+
- A breaking change in an exported function is made to resolve a defect.
10+
11+
<ins>Patch Version Increases</ins>
12+
- A bug was fixed.
13+
- A feature was added, in a backwards-compatible way.
14+
- A breaking change in an exported function is made to resolve a CVE.
15+
16+
The current supported release lines are:
17+
18+
| Wrangler Branch | Wrangler Major version | Supported Kubernetes Versions |
19+
|--------------------------|------------------------------------|------------------------------------------------|
20+
| main | v3 | v1.26 - v1.32 |
21+
| release/v2 | v2 | v1.23 - v1.26 |

0 commit comments

Comments
 (0)