-
Notifications
You must be signed in to change notification settings - Fork 65
Operator-Controller Release Guide #149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Release Process for OLM v1 | ||
|
||
## Choosing version increment | ||
When making releases for operator-controller, version increments should adhere strictly to Semantic Versioning. In short: | ||
* Major: API breaking change(s) are made. | ||
* Minor: Backwards compatible features are added. | ||
* Patch: Backwards compatible bug fix is made. | ||
|
||
When a major or minor release being made is associated with one or more milestones, please ensure that all related features have been merged into the `main` branch before continuing. | ||
|
||
## Creating the release | ||
Note that throughout this guide, the `upstream` remote refers to the `operator-framework/operator-controller` repository. | ||
|
||
The release process differs slightly based on whether a patch or major/minor release is being made. | ||
|
||
### Patch Release | ||
#### Step 1 | ||
In this example we will be creating a new patch release from version `v1.2.3`, on the branch `release-v1.2`. | ||
First ensure that the release branch has been updated on remote with the changes from the patch, then perform the following: | ||
```bash | ||
git fetch upstream release-v1.2 | ||
git pull release-v1.2 | ||
git checkout release-v1.2 | ||
``` | ||
|
||
#### Step 2 | ||
Create a new tag, incrementing the patch number from the previous version. In this case, we'll be incrementing from `v1.2.3` to `v1.2.4`: | ||
```bash | ||
## Previous version was v1.2.3, so we bump the patch number up by one | ||
git tag v1.2.4 | ||
git push upstream v1.2.4 | ||
``` | ||
|
||
### Major/Minor Release | ||
#### Step 1 | ||
Create a release branch from `main` branch for the target release. Follow the pattern `release-<MAJOR>.<MINOR>` when naming the branch; for example: `release-v1.2`. The patch version should not be included in the branch name in order to facilitate an easier patch process. | ||
```bash | ||
git checkout main | ||
git fetch upstream main | ||
git pull main | ||
git checkout -b release-v1.2 | ||
git push upstream release-v1.2 | ||
``` | ||
|
||
#### Step 2 | ||
Create and push our tag for the current release. | ||
```bash | ||
git tag v1.2.0 | ||
git push upstream v1.2.0 | ||
``` | ||
|
||
### Post-Steps | ||
Once the tag has been pushed the release action should run automatically. You can view the progress [here](https://github.com/operator-framework/operator-lifecycle-manager/actions/workflows/goreleaser.yaml). When finished, the release should then be available on the [releases page](https://github.com/operator-framework/operator-controller/releases). |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My intent with these two sections in the README was not to fully flesh them out yet but mostly just to get rid of the TODOs 🙂