Instructions to build and release a new operator version.
- If Docker doesn't have a crossbuild instance, create one with
docker buildx create --use
. - Login to Quay.io with
docker login quay.io
. - Bump version on Makefile
Run make dist
which will do automatically the following steps:
- Build binaries for all supported platforms on
output
directory (amd64, arm64, ...) - Cross-build docker images for all supported platforms and push to Quay.io
- Build catalog and bundle images and push them to Quay.io
- Build manifest bundles on
./bundle
- Validate the bundle with operator-sdk
- Update the image version on Readme
If all is ok, commit the remaining changes to the repository and push to GitHub.
- Tag the release with
git tag -a $(make print-VERSION) -m "$(make print-VERSION) - Description"
- Push the tag to the repo with
git push origin $(make print-VERSION)
- On GitHub, create a release based on this tag.
For OperatorHub community, checkout https://github.com/k8s-operatorhub/community-operators, create the version directory in community-operators/lbconfig-operator
and copy the whole bundle
diretory to it.
Fork the repo, create a branch, commit and open a PR upstream.
For OpenShift OperatorHub, checkout https://github.com/redhat-openshift-ecosystem/community-operators-prod and do a similar process as above.