Skip to content

Search: support multiple mongots#817

Draft
lsierant wants to merge 23 commits intosearch/sharded-clusterfrom
search/multiple-mongot
Draft

Search: support multiple mongots#817
lsierant wants to merge 23 commits intosearch/sharded-clusterfrom
search/multiple-mongot

Conversation

@lsierant
Copy link
Contributor

@lsierant lsierant commented Feb 20, 2026

Based on PR #816

Chain of upstream PRs as of 2026-03-03

Summary

Proof of Work

Checklist

  • Have you linked a jira ticket and/or is the ticket in the title?
  • Have you checked whether your jira ticket required DOCSP changes?
  • Have you added changelog file?

Copy link
Contributor Author

lsierant commented Feb 20, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@lsierant lsierant force-pushed the search/sharded-cluster branch from a917d32 to 915b024 Compare February 20, 2026 10:52
@lsierant lsierant force-pushed the search/multiple-mongot branch 2 times, most recently from 28b7edd to ceaced6 Compare February 20, 2026 10:58
@lsierant lsierant force-pushed the search/sharded-cluster branch from f449329 to 29a42da Compare February 20, 2026 12:59
@lsierant lsierant force-pushed the search/multiple-mongot branch 2 times, most recently from 4ae9bfc to 2cedafd Compare February 20, 2026 14:15
@lsierant lsierant mentioned this pull request Feb 20, 2026
@lsierant lsierant changed the base branch from search/sharded-cluster to graphite-base/817 February 20, 2026 15:47
@lsierant lsierant force-pushed the search/multiple-mongot branch from 2cedafd to f89d675 Compare February 21, 2026 09:02
@lsierant lsierant changed the base branch from graphite-base/817 to search/sharded-cluster February 21, 2026 09:03
@lsierant lsierant force-pushed the search/multiple-mongot branch from f89d675 to f599344 Compare February 21, 2026 09:13
@lsierant lsierant changed the base branch from search/sharded-cluster to graphite-base/817 February 23, 2026 12:25
@lsierant lsierant force-pushed the search/multiple-mongot branch from f599344 to b823e40 Compare February 23, 2026 20:47
@lsierant lsierant changed the base branch from graphite-base/817 to search/sharded-cluster February 23, 2026 20:47
@viveksinghggits viveksinghggits changed the base branch from search/sharded-cluster to graphite-base/817 February 25, 2026 18:44
@lsierant lsierant force-pushed the search/multiple-mongot branch from 77d6c13 to b292b51 Compare February 26, 2026 12:23
@lsierant lsierant changed the base branch from graphite-base/817 to search/sharded-cluster February 26, 2026 12:23
lsierant added a commit that referenced this pull request Mar 3, 2026
<!-- start git-machete generated -->

# Based on PR #817

## Chain of upstream PRs as of 2026-03-03

* PR #806:
  `master` ← `search/base`

  * PR #816:
    `search/base` ← `search/sharded-cluster`

    * PR #817:
      `search/sharded-cluster` ← `search/multiple-mongot`

      * **PR #853 (THIS ONE)**:
`search/multiple-mongot` ← `search/lsierant/revert-rs-cluster-index`

<!-- end git-machete generated -->
@lsierant lsierant force-pushed the search/sharded-cluster branch from 4c82ef8 to f36f5bb Compare March 3, 2026 21:26
lsierant added a commit that referenced this pull request Mar 3, 2026
<!-- start git-machete generated -->

# Based on PR #817

## Chain of upstream PRs as of 2026-03-03

* PR #806:
  `master` ← `search/base`

  * PR #816:
    `search/base` ← `search/sharded-cluster`

    * PR #817:
      `search/sharded-cluster` ← `search/multiple-mongot`

      * **PR #853 (THIS ONE)**:
`search/multiple-mongot` ← `search/lsierant/revert-rs-cluster-index`

<!-- end git-machete generated -->
@lsierant lsierant force-pushed the search/multiple-mongot branch from 21e7c0a to 70b4fe1 Compare March 3, 2026 21:31
Copy link
Collaborator

@viveksinghggits viveksinghggits Mar 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Julien-Ben Some of the things from the test file can be improved now that we have extracted some of the code.

@lsierant lsierant force-pushed the search/sharded-cluster branch from f36f5bb to f36ca1e Compare March 6, 2026 13:30
lsierant and others added 23 commits March 6, 2026 14:30
# Conflicts:
#	controllers/operator/mongodbshardedcluster_controller.go
#	controllers/searchcontroller/enterprise_search_source_test.go
Fixes to search with multiple-mongot
# Conflicts:
#	controllers/searchcontroller/mongodbsearch_reconcile_helper.go
- Fix try_load() by removing the FIXME early-return that was causing
  get_ops_manager() to return unloaded resources (empty status), resulting
  in empty baseUrl in OpsManager connection ConfigMaps on om80 variant
- Fix endpoint template in search-sharded-external-lb.yaml
- Fix username mismatch in enterprise_tls sample_movies_helper
- Fix CRD field name sharded→shardedCluster in sharded_enterprise_external_mongod
- Fix CA configmap and mongodbResourceRef overrides in sharded_enterprise_managed_lb
- Fix username mismatches in sharded_external_mongod_single_mongot
<!-- start git-machete generated -->

# Based on PR #817

## Chain of upstream PRs as of 2026-03-03

* PR #806:
  `master` ← `search/base`

  * PR #816:
    `search/base` ← `search/sharded-cluster`

    * PR #817:
      `search/sharded-cluster` ← `search/multiple-mongot`

      * **PR #853 (THIS ONE)**:
`search/multiple-mongot` ← `search/lsierant/revert-rs-cluster-index`

<!-- end git-machete generated -->
…ss tests (#863)

# Summary

<!-- Enter your PR summary here. Try to emphasize on WHY this change is
needed, followed by what's being done in the PR. -->

## Proof of Work

<!-- Enter your proof that it works here.-->

## Checklist

- [ ] Have you linked a jira ticket and/or is the ticket in the title?
- [ ] Have you checked whether your jira ticket required DOCSP changes?
- [ ] Have you added changelog file?
    - use `skip-changelog` label if not needed
- refer to [Changelog files and Release
Notes](https://github.com/mongodb/mongodb-kubernetes/blob/master/CONTRIBUTING.md#changelog-files-and-release-notes)
section in CONTRIBUTING.md for more details
# Summary

Improve managed Envoy proxy: replace custom config types with go-control-plane, support external mongod sources, and add CRD configurability

Replace hand-rolled Envoy config structs with the official envoyproxy/go-control-plane protobuf types for type-safe JSON config generation 

Refactor the Envoy controller to share database source resolution with the main search controller via getSearchSource, enabling managed LB support for external mongod sharded sources. Add CRD fields for Envoy image and resource requirements overrides, proper security contexts, and a new e2e test for sharded enterprise with external mongod managed LB.
@lsierant lsierant force-pushed the search/multiple-mongot branch from 5ba63f4 to 32a6973 Compare March 6, 2026 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants