MongoDB Kubernetes Enterprise Operator 1.20.1
·
41 commits
to master
since this release
This release fixes an issue that prevented upgrading the Kubernetes Operator to 1.20.0 in OpenShift. Upgrade to this release instead.
MongoDBOpsManager Resource
- Added support for votes, priority and tags by introducing the
spec.applicationDatabase.memberConfig.votes,spec.applicationDatabase.memberConfig.priority
andspec.applicationDatabase.memberConfig.tagsfield. - Introduced automatic change of the AppDB's image version suffix
-entto-ubi8.- This enables migration of AppDB images from the legacy repository (
quay.io/mongodb/mongodb-enterprise-appdb-database-ubi) to the new official one (quay.io/mongodb/mongodb-enterprise-server) without changing the version in MongoDBOpsManager'sapplicationDatabase.versionfield. - The change will result a rolling update of AppDB replica set pods to the new, official images (referenced in Helm Chart in
values.mongodb.namefield), which are functionally equivalent to the previous ones (the same MongoDB version). - Suffix change occurs under specific circumstances:
- Helm setting for appdb image:
mongodb.namewill now default tomongodb-enterprise-server. - The operator will automatically replace the suffix for image repositories
that end withmongodb-enterprise-server.
Operator will replace the suffix-entwith the value set in the environment variable
MDB_IMAGE_TYPE, which defaults to-ubi8.
For instance, the operator will migrate:quay.io/mongodb/mongodb-enterprise-server:4.2.11-enttoquay.io/mongodb/mongodb-enterprise-server:4.2.11-ubi8.MDB_IMAGE_TYPE=ubuntu2024 quay.io/mongodb/mongodb-enterprise-server:4.2.11-enttoquay.io/mongodb/mongodb-enterprise-server:4.2.11-ubuntu2024.- The operator will do the automatic migration of suffixes only for images
that reference the namemongodb-enterprise-server.
It won't perform migration for any other image name, e.g.:mongodb-enterprise-appdb-database-ubi:4.0.0-entwill not be altered
- To stop the automatic suffix migration behavior,
set the following environment variable to true:MDB_APPDB_ASSUME_OLD_FORMAT=true
or alternatively in the following helm chart setting:mongodb.appdbAssumeOldFormat=true
- Helm setting for appdb image:
- This enables migration of AppDB images from the legacy repository (
- Added support for defining bare versions in
spec.applicationDatabase.version. Previously, it was required to specify AppDB's version with-entsuffix. Currently, it is possible to specify a bare version, e.g.6.0.5and the operator will convert it to6.0.5-${MDB_IMAGE_TYPE}. The default for environment variableMDB_IMAGE_TYPEis-ubi8.
Bug fixes
- Fixed MongoDBMultiCluster not watching Ops Manager's connection configmap and secret.
- Fixed support for rotating the clusterfile secret, which is used for internal x509 authentication in MongoDB and MongoDBMultiCluster resources.
Helm Chart
- All images reference ubi variants by default (added suffix -ubi)
- quay.io/mongodb/mongodb-enterprise-database-ubi
- quay.io/mongodb/mongodb-enterprise-init-database-ubi
- quay.io/mongodb/mongodb-enterprise-ops-manager-ubi
- quay.io/mongodb/mongodb-enterprise-init-ops-manager-ubi
- quay.io/mongodb/mongodb-enterprise-init-appdb-ubi
- quay.io/mongodb/mongodb-agent-ubi
- quay.io/mongodb/mongodb-enterprise-appdb-database-ubi
- Changed default AppDB repository to official MongoDB Enterprise repository in
values.mongodb.namefield: quay.io/mongodb/mongodb-enterprise-server. - Introduced
values.mongodb.imageTypevariable to specify a default image type suffix added to AppDB's version used by MongoDBOpsManager resource.
Breaking changes
- Removal of
appdb.connectionSpec.Projectsince it has been deprecated for over 2 years.