Skip to content

Commit

Permalink
Release MongoDB Kubernetes Operator v0.12.0 (#1646)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaciejKaras authored Dec 18, 2024
1 parent 4818d41 commit f3170c6
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 16 deletions.
6 changes: 3 additions & 3 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,16 @@ spec:
- name: OPERATOR_NAME
value: mongodb-kubernetes-operator
- name: AGENT_IMAGE
value: quay.io/mongodb/mongodb-agent-ubi:107.0.7.8596-1
value: quay.io/mongodb/mongodb-agent-ubi:108.0.2.8729-1
- name: VERSION_UPGRADE_HOOK_IMAGE
value: quay.io/mongodb/mongodb-kubernetes-operator-version-upgrade-post-start-hook:1.0.9
- name: READINESS_PROBE_IMAGE
value: quay.io/mongodb/mongodb-kubernetes-readinessprobe:1.0.20
value: quay.io/mongodb/mongodb-kubernetes-readinessprobe:1.0.22
- name: MONGODB_IMAGE
value: mongodb-community-server
- name: MONGODB_REPO_URL
value: quay.io/mongodb
image: quay.io/mongodb/mongodb-kubernetes-operator:0.11.0
image: quay.io/mongodb/mongodb-kubernetes-operator:0.12.0
imagePullPolicy: Always
name: mongodb-kubernetes-operator
resources:
Expand Down
6 changes: 3 additions & 3 deletions deploy/openshift/operator_openshift.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@ spec:
- name: OPERATOR_NAME
value: mongodb-kubernetes-operator
- name: AGENT_IMAGE
value: quay.io/mongodb/mongodb-agent-ubi:107.0.7.8596-1
value: quay.io/mongodb/mongodb-agent-ubi:108.0.2.8729-1
- name: READINESS_PROBE_IMAGE
value: quay.io/mongodb/mongodb-kubernetes-readinessprobe:1.0.20
value: quay.io/mongodb/mongodb-kubernetes-readinessprobe:1.0.22
- name: VERSION_UPGRADE_HOOK_IMAGE
value: quay.io/mongodb/mongodb-kubernetes-operator-version-upgrade-post-start-hook:1.0.9
- name: MONGODB_IMAGE
value: mongo
- name: MONGODB_REPO_URL
value: quay.io
image: quay.io/mongodb/mongodb-kubernetes-operator:0.11.0
image: quay.io/mongodb/mongodb-kubernetes-operator:0.12.0
imagePullPolicy: Always
name: mongodb-kubernetes-operator
resources:
Expand Down
7 changes: 7 additions & 0 deletions docs/RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,10 @@

## Added support for MongoDB 8.0.0 GA
MongoDB 8.0.0 GA is now officially supported by the Operator

## Minor fixes and improvements

- Use pointer field for priority in member options
- readinessProbe: use human-readable timestamps instead
- Bumped Go to 1.23 and kube APIs to 1.29
- Update package crypto to remediate multiple CVEs
23 changes: 16 additions & 7 deletions docs/how-to-release.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@

## How to Release
* Prepare release PR:
* Pull the changes in the helm-charts sub module folder to get the latest main.
* `cd helm-charts && git pull origin main`.
* Pull the changes in the helm-charts submodule folder to get the latest main.
* `cd helm-charts`
* `git submodule update --init` - if submodule was not initialised before
* `git pull origin main`
* Update any changing versions in [release.json](../release.json).
* `operator` - always when doing a release
* `version-upgrade-hook` - whenever we make changes in the [versionhook](../cmd/versionhook) files
* `readiness-probe` - whenever we make changes in the [readiness](../cmd/readiness) files
* `agent` - newest version available in `ops-manager` `conf-hosted.properties` file under `automation.agent.version`
* `agent-tools-version` - newest version available in `ops-manager` `conf-hosted.properties` file under `mongotools.version`
* Ensure that [the release notes](./RELEASE_NOTES.md) are up to date for this release.
* all merged PRs have a covered entry in the release notes. For example, you can use `git log v0.11.0..HEAD --reverse --oneline` to get the list of commits after previous release
* Run `python scripts/ci/update_release.py` to update the relevant yaml manifests.
* Copy `CRD`s to Helm Chart
- `cp config/crd/bases/mongodbcommunity.mongodb.com_mongodbcommunity.yaml helm-charts/charts/community-operator-crds/templates/mongodbcommunity.mongodb.com_mongodbcommunity.yaml`
- commit changes to the [helm-charts submodule](https://github.com/mongodb/helm-charts) and create a PR against it ([similar to this one](https://github.com/mongodb/helm-charts/pull/163)).
- do not merge helm-charts PR until release PR is merged and the images are pushed to quay.io.
- do not commit the submodule change in the release pr of the community repository.
* **use venv and then `python3 -m pip install -r requirements.txt`**
* Copy ``CRD`s`` to Helm Chart
* `cp config/crd/bases/mongodbcommunity.mongodb.com_mongodbcommunity.yaml helm-charts/charts/community-operator-crds/templates/mongodbcommunity.mongodb.com_mongodbcommunity.yaml`
* commit changes to the [helm-charts submodule](https://github.com/mongodb/helm-charts) and create a PR against it ([similar to this one](https://github.com/mongodb/helm-charts/pull/163)).
* do not merge helm-charts PR until release PR is merged and the images are pushed to quay.io.
* do not commit the submodule change in the release pr of the community repository.
* Commit all changes (except for the submodule change)
* Create a PR with the title `Release MongoDB Kubernetes Operator v<operator-version>` (the title must match this pattern).
* Wait for the tests to pass and merge the PR.
Expand Down
6 changes: 3 additions & 3 deletions release.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"golang-builder-image": "golang:1.23",
"operator": "0.11.0",
"operator": "0.12.0",
"version-upgrade-hook": "1.0.9",
"readiness-probe": "1.0.21",
"agent": "108.0.0.8694-1",
"readiness-probe": "1.0.22",
"agent": "108.0.2.8729-1",
"agent-tools-version": "100.10.0"
}

0 comments on commit f3170c6

Please # to comment.