For local development testing operator by pushing directly to Docker image repository.
- Change
VERSION
andDOCKER_REPO_BASE
variable in Makefile - Build controller and bundle images
make manifests build docker-build docker-push
make bundle bundle-build bundle-push
- Add version entry to
catalog/channels
according to OLM upgrade specifications- Add
skips
for entry for non-breaking API changesentries: - name: {{NAME}}-operator.v0.0.3 skips: - {{NAME}}-operator.v0.0.1 - {{NAME}}-operator.v0.0.2 - ....
- Add
replaces
for entry for breaking API changesentries: - name: {{NAME}}-operator.v0.0.3 replaces: {{NAME}}-operator.v0.0.1
- Add
- Render, build and push bundle to the catalog index
make catalog-render catalog-build catalog-push
For pipeline build and release of images and most importantly the custom catalog.
Version will be bumped from existing release tag
, not what is set in Makefile unlike manual release.
- Changes are made to files in
catalog
directory Next version
entry are specified incatalog/channels.yalm
Next version
is bumped from existing release version according to semver, for example v0.0.1 will be v0.0.2
- Add next version entry to
catalog/channels
according to OLM upgrade specifications.entries: - name: uptimeguardian.v{{CURRENT}} - name: uptimeguardian.v{{NEXT}} skips: - uptimeguardian.v0.0.1
- Make PR, test PR release
- Merge will build and push releases
https://docs.openshift.com/container-platform/4.17/operators/admin/olm-managing-custom-catalogs.html