make release
target can be used to create a release. Environment variable RELEASE_VERSION
(default value latest
) can be used to define the release version. The release
target will:
- Update all tags of Docker images to
RELEASE_VERSION
- Update documentation version to
RELEASE_VERSION
- Set version of the main Maven projects (
topic-operator
andcluster-operator
) toRELEASE_VERSION
- Create TAR.GZ and ZIP archives with the Kubernetes and OpenShift YAML files which can be used for deployment and documentation in HTML format.
The release
target will not build the Docker images - they should be built and pushed automatically by Travis CI when the release is tagged in the GitHub repository. It also doesn't deploy the Java artifacts anywhere. They are only used to create the Docker images.
The release process should normally look like this:
- Create a release branch
- On the
main
git branch of the operators repository:
- Update the versions to the next SNAPSHOT version using the
next_version
make
target. For example to update the next version to0.6.0-SNAPSHOT
run:make NEXT_VERSION=0.6.0-SNAPSHOT next_version
.
- Run
make clean
- Export the desired version into the environment variable
RELEASE_VERSION
- Run
make release
- Update the
install
,example
andhelm-chart
files in the release branch with files frompackaging/
updated bymake release
- Commit the changes to the existing files (do not add the newly created top level TAR.GZ, ZIP archives or .yaml files into Git)
- Push the changes to the release branch on GitHub
- Create the tag and push it to GitHub. Tag name determines the tag of the resulting Docker images. Therefore the Git tag name has to be the same as the
RELEASE_VERSION
, i.e.git tag ${RELEASE_VERSION}
, - Once the CI build for the tag is finished, and the Docker images are pushed to Docker Hub, Create a GitHub release and tag based on the release branch. Attach the TAR.GZ/ZIP archives, YAML files (for installation from URL) from step 5 and the Helm Chart to the release
- (only for GA, not for RCs) Update the website
- Update the
_redirects
file to make sure the/install/latest
redirect points to the new release. - Update the
_data/releases.yaml
file to add new release - Update the documentation:
- Create new directories
docs/operators/<new-version>
anddocs/operators/<new-version>/full
in the website repository - Copy files from the operators repository
documentation/htmlnoheader
todocs/operators/<new-version>
in the website repository - Copy files from the operators repository
documentation/html
todocs/operators/<new-version>/full
in the website repository - Create new files
contributing.md
,deploying.md
,overview.md
,quickstart.md
, andusing.md
indocs/operators/<new-version>
- the content of these files should be the same as for older versions, so you can copy them and update the version number. - Delete the old HTML files and images from
docs/operators/latest
anddocs/operators/latest/full
(keep the*.md
files) - Copy files from the operators repository
documentation/htmlnoheader
todocs/operators/latest
in the website repository - Copy files from the operators repository
documentation/html
todocs/operators/latest/full
in the website repository
- Create new directories
- Update the Helm Chart repository file by copying
helm-charts/helm3/index.yaml
in the operators GitHub repository tocharts/index.yaml
in the website GitHub repsoitory.
- (only for GA, not for RCs) On the
main
git branch of the operators repository:
- Copy the
packaging/helm-charts/index.yaml
from therelease
branch tomain
- Update the
ProductVersion
variable indocumentation/using/shared/attributes.adoc
- Update the
install
,examples
andhelm-chart
directories in themain
branch with the newly released files
- (only for GA, not for RCs) The maven artifacts (
api
module) will be automatically staged from Azure during the tag build. It has to be releases from Sonatype to get to the main Maven repositories. - (only for GA, not for RCs) Update the Strimzi manifest files in Operator Hub community operators repository and submit a pull request upstream. Note: Instructions for this step need updating.
- (only for GA, not for RCs) Add the new version to the
systemtest/src/test/resources/upgrade/StrimziUpgradeST.json
file for the upgrade tests - (only for GA, not for RCs) Add the new version to the
systemtest/src/test/resources/upgrade/StrimziDowngradeST.json
file and remove the old one for the downgrade tests
The version of Strimzi Kafka Bridge is defined in the file ./bridge.version
.
Even the main
branch is using this fixed version and not the version build from the main
branch of Kafka Bridge.
If you need to update the Kafka bridge to newer version, you should do it with following steps:
- Edit the
bridge.version
file and update it to contain the new Bridge version - Run
make bridge_version
to update the related files to the new version - Commit all modified files to Git and open a PR.