Skip to content

Commit

Permalink
updated mongodb helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
f-w committed Dec 8, 2024
1 parent 44d5e93 commit b0b8a69
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 5 deletions.
1 change: 1 addition & 0 deletions docs/docs/getting-started/what's-new.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ _NotifyBC_ uses [semantic versioning](https://semver.org/).
- Replaced Bottleneck with BullMQ
- Redis is required
- Bitnami Redis Helm chart is updated from version 16.13.2 to 20.1.0, with corresponding Redis from 6.2.7 to 7.4.0
- Bitnami MongoDB Helm chart is updated from version 14.3.2 to 16.3.3, with corresponding MongoDB from 7.0.4 to 8.0.4
- Added `loggingLevels` config

## v5
Expand Down
38 changes: 37 additions & 1 deletion docs/docs/miscellaneous/upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,38 @@ v6 introduced following backward incompatible changes
3. Terms for [node roles](../config/nodeRoles.md) have changed. If you defined environment variable _NOTIFYBC_NODE_ROLE_ with value other than _slave_, remove the environment variable; otherwise change it to _secondary_. If you deployed NotifyBC using Helm, this change is taken care of.

4. config `notification.broadcastSubRequestBatchSize` is deprecated. If you defined it in _/src/config.local.js_, remove it.
5. Bitnami MongoDB Helm chart is updated from version 14.3.2 to 16.3.3, with corresponding MongoDB from 7.0.4 to 8.0.4. If you deployed _NotifyBC_ using Helm, or if you are running MongoDB 7 and planning to upgrade to MongoDB 8, follow [Upgrade 7.0 to 8.0](https://www.mongodb.com/docs/manual/release-notes/8.0-upgrade/). In particular, ensure `setFeatureCompatibilityVersion` is set to `7.0`
```
db.adminCommand( { getParameter: 1, featureCompatibilityVersion: 1 } )
db.adminCommand( { setFeatureCompatibilityVersion: "7.0" } )
```

After above changes are addressed, to upgrade _NotifyBC_ to v6,

- if _NotifyBC_ is deployed from source code, run

```sh
git pull
git checkout tags/v6.x.x
npm i && npm run build
```

Replace

- _v6.x.x_ with a v6 release, preferably latest, found in GitHub such as _v6.0.0_.

- if _NotifyBC_ is deployed to Kubernetes using Helm,
1. backup MongoDB database
2. run
```sh
git pull
git checkout tags/v6.x.x
helm upgrade <release-name> -f helm/platform-specific/<platform>.yaml -f helm/values.local.yaml helm
```
Replace
- _v6.x.x_ with a v6 release, preferably latest, found in GitHub such as _v6.0.0_.
- \<release-name\> with installed helm release name
- \<platform\> with _openshift_ or _aks_ depending on your platform

## v4 to v5

Expand Down Expand Up @@ -167,6 +199,10 @@ After above changes are addressed, to upgrade _NotifyBC_ to v5,
npm i && npm run build
```

Replace

- _v5.x.x_ with a v6 release, preferably latest, found in GitHub such as _v5.0.0_.

- if _NotifyBC_ is deployed to Kubernetes using Helm,
1. backup MongoDB database
2. run
Expand All @@ -184,7 +220,7 @@ After above changes are addressed, to upgrade _NotifyBC_ to v5,
Replace
- _v5.x.x_ with a v5 release, preferably latest, found in GitHub such as _v5.0.0_.
- \<release-name\> with installed helm release name
- \<platform\> with openshift or aks depending on your platform
- \<platform\> with _openshift_ or _aks_ depending on your platform
5. restore MongoDB database

## v3 to v4
Expand Down
6 changes: 3 additions & 3 deletions helm/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
dependencies:
- name: mongodb
repository: https://charts.bitnami.com/bitnami
version: 14.3.2
version: 16.3.3
- name: redis
repository: https://charts.bitnami.com/bitnami
version: 20.1.0
digest: sha256:82b13a154784e333c224eb20961804d2b5f4df57cac8c57eebd4c0a735b027e1
generated: "2024-11-11T15:44:02.2214534-08:00"
digest: sha256:d154cf1eb245d2ee38f64c1fd2af60b37eac48c178d0426953d180685214db2b
generated: "2024-12-08T12:06:39.3246195-08:00"
2 changes: 1 addition & 1 deletion helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ appVersion: '5.1'

dependencies:
- name: mongodb
version: 14.3.2
version: 16.3.3
repository: https://charts.bitnami.com/bitnami
- name: redis
version: 20.1.0
Expand Down
Binary file removed helm/charts/mongodb-14.3.2.tgz
Binary file not shown.
Binary file added helm/charts/mongodb-16.3.3.tgz
Binary file not shown.

0 comments on commit b0b8a69

Please sign in to comment.