MongoDB Kubernetes Enterprise Operator 1.20.1
mms-build-account
released this
07 Jun 16:34
·
24 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.tags
field. - Introduced automatic change of the AppDB's image version suffix
-ent
to-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.version
field. - The change will result a rolling update of AppDB replica set pods to the new, official images (referenced in Helm Chart in
values.mongodb.name
field), which are functionally equivalent to the previous ones (the same MongoDB version). - Suffix change occurs under specific circumstances:
- Helm setting for appdb image:
mongodb.name
will 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-ent
with 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-ent
toquay.io/mongodb/mongodb-enterprise-server:4.2.11-ubi8
.MDB_IMAGE_TYPE=ubuntu2024 quay.io/mongodb/mongodb-enterprise-server:4.2.11-ent
toquay.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-ent
will 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-ent
suffix. Currently, it is possible to specify a bare version, e.g.6.0.5
and the operator will convert it to6.0.5-${MDB_IMAGE_TYPE}
. The default for environment variableMDB_IMAGE_TYPE
is-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.name
field: quay.io/mongodb/mongodb-enterprise-server. - Introduced
values.mongodb.imageType
variable to specify a default image type suffix added to AppDB's version used by MongoDBOpsManager resource.
Breaking changes
- Removal of
appdb.connectionSpec.Project
since it has been deprecated for over 2 years.