You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CLOUDP-353163: remove search 8.0.10 support (#559)
# Summary
This pull request updates the minimum supported MongoDB version for
search features to 8.2.0 and removes legacy compatibility logic for
older versions. The main changes include raising the version
requirements in validation logic and related tests, and cleaning up code
that previously polyfilled the Search Coordinator role for older MongoDB
versions.
**Version requirement updates:**
* Raised the minimum MongoDB version required for search features from
8.0.10 to 8.2.0 in both community and enterprise validation logic
(`community_search_source.go`, `enterprise_search_source.go`).
[[1]](diffhunk://#diff-79689400c088c4485d9ae28b3ca86fe463754f5dec27c956c67849a34ac94e61L67-R68)
[[2]](diffhunk://#diff-3837b30e8c3c6c546a85cd00429654741c55ee4b874c5f870050402cfda777deL58-R59)
* Updated all related test cases to use 8.2.0 as the minimum version and
adjusted version-specific test scenarios accordingly
(`community_search_source_test.go`, `enterprise_search_source_test.go`).
[[1]](diffhunk://#diff-481a2aca8f821dc66bf882888c48a3a5f1425819db08a225c146396c347339e8L53-R166)
[[2]](diffhunk://#diff-481a2aca8f821dc66bf882888c48a3a5f1425819db08a225c146396c347339e8L177-R181)
[[3]](diffhunk://#diff-481a2aca8f821dc66bf882888c48a3a5f1425819db08a225c146396c347339e8L191-R191)
[[4]](diffhunk://#diff-6bfeddaf7d509b615b96bcc898fc54cf92384660b3b9de35a924acc9edd1c27fL80-R101)
[[5]](diffhunk://#diff-6bfeddaf7d509b615b96bcc898fc54cf92384660b3b9de35a924acc9edd1c27fL110-R110)
[[6]](diffhunk://#diff-6bfeddaf7d509b615b96bcc898fc54cf92384660b3b9de35a924acc9edd1c27fL119-R127)
[[7]](diffhunk://#diff-6bfeddaf7d509b615b96bcc898fc54cf92384660b3b9de35a924acc9edd1c27fL136-R136)
[[8]](diffhunk://#diff-6bfeddaf7d509b615b96bcc898fc54cf92384660b3b9de35a924acc9edd1c27fL145-R145)
[[9]](diffhunk://#diff-6bfeddaf7d509b615b96bcc898fc54cf92384660b3b9de35a924acc9edd1c27fL154-R154)
[[10]](diffhunk://#diff-6bfeddaf7d509b615b96bcc898fc54cf92384660b3b9de35a924acc9edd1c27fL163-R163)
[[11]](diffhunk://#diff-6bfeddaf7d509b615b96bcc898fc54cf92384660b3b9de35a924acc9edd1c27fL172-R212)
[[12]](diffhunk://#diff-6bfeddaf7d509b615b96bcc898fc54cf92384660b3b9de35a924acc9edd1c27fL221-R221)
[[13]](diffhunk://#diff-6bfeddaf7d509b615b96bcc898fc54cf92384660b3b9de35a924acc9edd1c27fL231-R231)
[[14]](diffhunk://#diff-6bfeddaf7d509b615b96bcc898fc54cf92384660b3b9de35a924acc9edd1c27fL240-R240)
[[15]](diffhunk://#diff-6bfeddaf7d509b615b96bcc898fc54cf92384660b3b9de35a924acc9edd1c27fL255-R259)
[[16]](diffhunk://#diff-6bfeddaf7d509b615b96bcc898fc54cf92384660b3b9de35a924acc9edd1c27fL268-R268)
* Updated the default version in test object creation to 8.2.0
(`mongodbsearch_controller_test.go`).
**Legacy code cleanup:**
* Removed the Search Coordinator role polyfill logic from the replica
set controller, as it is no longer needed with the new minimum version
(`mongodbreplicaset_controller.go`).
* Added the changelog entry for removing the MongoDB Search Coordinator
polyfill
(`changelog/20251015_other_remove_legacy_search_coordinator_polyfill.md`).
**Minor dependency cleanup:**
* Removed unused imports related to legacy semver and API modules in the
search reconcile helper (`mongodbsearch_reconcile_helper.go`).
[[1]](diffhunk://#diff-9b1183581cc6af6723f6445d7a14ae4ae7b435dc3b93ca5d82247cda13f7ca39L10)
[[2]](diffhunk://#diff-9b1183581cc6af6723f6445d7a14ae4ae7b435dc3b93ca5d82247cda13f7ca39L25)
## Proof of Work
Tests pass
* Simplified MongoDB Search setup: Removed the custom Search Coordinator polyfill (a piece of compatibility code previously needed to add the required permissions), as MongoDB 8.2.0 and later now include the necessary permissions via the built-in searchCoordinator role.
0 commit comments