Skip to content

Commit

Permalink
Implement versioning ADR (#511)
Browse files Browse the repository at this point in the history
* Add release GHA

Signed-off-by: Vatsal Parekh <vatsalparekh@outlook.com>

* Add Versioning ADR doc

Signed-off-by: Vatsal Parekh <vatsalparekh@outlook.com>

* Update VERSION.md

Co-authored-by: Tom Lebreux <me@tomlebreux.com>

---------

Signed-off-by: Vatsal Parekh <vatsalparekh@outlook.com>
Co-authored-by: Tom Lebreux <me@tomlebreux.com>
  • Loading branch information
vatsalparekh and tomleb authored Jan 28, 2025
1 parent 1fbf9bd commit 0bfb013
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release

on:
push:
tags:
- v*

jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name : Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Create release on Github
env:
GH_TOKEN: ${{ github.token }}
run: |
if [[ "${{ github.ref_name }}" == *-rc* ]]; then
gh --repo "${{ github.repository }}" release create ${{ github.ref_name }} --verify-tag --generate-notes --prerelease
else
gh --repo "${{ github.repository }}" release create ${{ github.ref_name }} --verify-tag --generate-notes
fi
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -361,3 +361,7 @@ type FooCache interface {
type FooIndexer func(obj *v1alpha1.Foo) ([]string, error)

```

# Versioning

See [VERSION.md](VERSION.md).
21 changes: 21 additions & 0 deletions VERSION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
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:

<ins>Major Version Increases</ins>:
- Support for a kubernetes version is explicitly removed (note that this means that wrangler uses a feature that does not work on this version).
- A breaking change is made, which is not necessary to resolve a defect.

<ins>Minor Version Increases</ins>:
- Support for a kubernetes version is added.
- A breaking change in an exported function is made to resolve a defect.

<ins>Patch Version Increases</ins>
- A bug was fixed.
- A feature was added, in a backwards-compatible way.
- A breaking change in an exported function is made to resolve a CVE.

The current supported release lines are:

| Wrangler Branch | Wrangler Major version | Supported Kubernetes Versions |
|--------------------------|------------------------------------|------------------------------------------------|
| main | v3 | v1.26 - v1.32 |
| release/v2 | v2 | v1.23 - v1.26 |

0 comments on commit 0bfb013

Please sign in to comment.