* Run `make bundle` once to initialize the clusterserviceversion file
* Run `make bundle` to initialize the clusterserviceversion file, the first time it will ask to provide name,
description etc. for the CSV. To be consistent with other operators, check their own CSV.
* Ensure removing the annotation `olm.skipRange` value under `config\manifests\bases\<operator-name>.clusterserviceversion.yaml`.
...
...
@@ -223,7 +231,7 @@ When committing the first version of the operator, there is no existing catalog
...
```
* Ensure the `CATALOG_BASE_IMG` variable is not commented out under the `.gitlab-ci.yml` file.
* Ensure the `CATALOG_BASE_IMG` variable is set under the `.gitlab-ci.yml` file.
```yaml
---
...
...
@@ -234,9 +242,13 @@ When committing the first version of the operator, there is no existing catalog
CATALOG_BASE_IMG:${IMAGE_TAG_BASE}-catalog:latest
```
* Set the annotation `olm.skipRange` value under `config\manifests\bases\<operator-name>.clusterserviceversion.yaml`. E.g. if new `VERSION` is `0.0.3`, annotation `olm.skipRange` MUST be `<0.0.3`.
* Set the annotation `olm.skipRange` value under `config\manifests\bases\<operator-name>.clusterserviceversion.yaml`. E.g. if new `VERSION` is `0.0.2`, annotation `olm.skipRange` MUST be `<0.0.2`.
* Run `VERSION=0.0.2 make bundle` to update the clusterserviceversion under version control. While it's not strictly necessary since CI will
run it again, this allows having an up-to-date view of the final CSV under version control (this final CSV is in
`bundle/manifests`)
Finally, commit the changes and let the CI do the work for us, i.e., to build and push both the bundle and the catalog, this last containing the bundle we have generated to the appropriate production clusters.
Refer to the [4._Deployment/Helm/1-deploy-new-version.md](../4._Deployment/Helm/1-deploy-new-version.md) document to deploy changes into the corresponding staging/production clusters.