Skip to content

Commit

Permalink
how to upgrade fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed Sep 25, 2024
1 parent 4d54d04 commit cf51e4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion solution-base/mongodb/how_to_upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ I will be taking as an example the upgrade from 5 to 6):
2. Bump mongo version in `solution-base/deps.yaml` files.
3. Bump mongodb sharded version in charts => `CHART_MONGO_SHARDED_VERSION` in the `solution-base/mongodb/Makefile` file (e.g. `CHART_MONGO_SHARDED_VERSION:="6.6.7"`)
4. Upgrade charts to the version targetted => `make fetch-mongodb-sharded`
5. Manually update the patches by applying the changes manually in the new upgraded charts => `git diff -- solution-base/mongodb/charts/mongodb-sharded/values.yaml > solution-base/mongodb/patches/secret-name.patch` (this operation needs to be done for every patch).
5. Manually update the patches by applying the changes manually in the new upgraded charts => `git diff -- solution-base/mongodb/charts/mongodb-sharded/values.yaml > solution-base/mongodb/patches/secret-name.patch` (this operation needs to be done for every patch).
**Note**: This step is only necessary if the patch does not apply automatically.
6. Once the patches are updated, apply them to the charts with the command `make patch`.
7. After upgrading, you may need to apply additional changes that are not directly handled by the charts or patches. For example, when upgrading to MongoDB 6.0, you need to switch from using `mongo` to `mongosh`. Refer to the release notes for the new version (e.g., `https://www.mongodb.com/docs/v6.0/release-notes/6.0/`) for details on these additional changes.
8. Passing CI tests is not enough, you must also perform an upgrade check with the product(s) using this Zenko version, before merging the upgrade PR. Some changes may be required at upper-levels (e.g., update mongosh commands, or add new logic in the upgrade).

0 comments on commit cf51e4b

Please sign in to comment.