Skip to content
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

Add docs for operator releases #192

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions docs/dev-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,32 @@ To deploy the latest vesion of the CLaaS operator, run the following commands:
- `make bundle bundle-build bundle-push BUNDLE_IMG="quay.io/$QUAY_USERNAME/cluster-templates-operator-bundle"`
- make sure that the repo `quay.io/$QUAY_USERNAME/cluster-templates-operator-bundle` is public
- `operator-sdk run bundle quay.io/$QUAY_USERNAME/cluster-templates-operator-bundle:latest --timeout 5m`

# Releasing a new version to OperatorHub

CaaS is being released to [K8s Community Operators](https://github.com/k8s-operatorhub/community-operators) and [OpenShift Community Operators](https://github.com/redhat-openshift-ecosystem/community-operators-prod)

## Preparing a release

Run `make manifests && make generate && make bundle` which will generate up-to-date manifests in `bundle` folder.

Update `cluster-aas-operator.clusterserviceversion.yaml` file:
- update `spec.version` field
- update `metadata.name` field
- update container image in `metadata.annotations.containerImage` and `spec.install.spec.deployments.image`

## Releasing K8s Community Operator

- clone [K8s Community Operators](https://github.com/k8s-operatorhub/community-operators)
- add new folder to `operators/cluster-aas-operator`. Folder name will be a new version name.
- Copy the bundle manifests
- Create a PR for the repo.


## Releasing OpenShift Community Operator

- clone [OpenShift Community Operators](https://github.com/redhat-openshift-ecosystem/community-operators-prod)
- add new folder to `operators/cluster-aas-operator`. Folder name will be a new version name.
- Copy the bundle manifests
- Add `com.redhat.openshift.versions: <min_ocp_version>` annotation to `metadata/annotations.yaml`
- Create a PR for the repo.