KUBE-170: Add replica-set multi-cluster Search snippets#1379
Open
anandsyncs wants to merge 1 commit into
Open
Conversation
anandsyncs
requested review from
fealebenpae and
lsierant
and removed request for
a team
July 15, 2026 14:29
This was referenced Jul 15, 2026
viveksinghggits
approved these changes
Jul 15, 2026
anandsyncs
force-pushed
the
anandsyncs-kube-170-rs-multicluster-search-snippets
branch
from
July 16, 2026 12:06
f9fe967 to
fca5325
Compare
There was a problem hiding this comment.
Pull request overview
Adds a new end-to-end, CI-runnable multi-cluster MongoDB Search code-snippet scenario for an Ops Manager–managed replica set (docs/search scenario 12), along with the supporting kind multi-cluster context/runner and Evergreen wiring.
Changes:
- Introduces scenario 12-search-rs-multi-cluster (public README/env contract + internal CI-only source-deployment steps).
- Adds a new kind multi-cluster snippets test runner (
test_kind_search_rs_multi_cluster_snippets.sh) and a private multi-cluster kind context. - Wires a new Evergreen task + task group + private build variant for multi-cluster snippets.
Reviewed changes
Copilot reviewed 29 out of 29 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| scripts/dev/contexts/private_kind_multi_cluster_code_snippets | Adds a private kind multi-cluster context for running snippet E2Es. |
| scripts/code_snippets/tests/test_kind_search_rs_multi_cluster_snippets.sh | New multi-phase CI runner for scenario 12 + shared query scenario execution. |
| docs/search/12-search-rs-multi-cluster/test.sh | Scenario 12 snippet orchestration (runs snippets in order). |
| docs/search/12-search-rs-multi-cluster/README.md | Customer-facing instructions + prerequisites for multi-cluster Search on an existing RS. |
| docs/search/12-search-rs-multi-cluster/env_variables.sh | Public environment contract for multi-cluster Search scenario 12. |
| docs/search/12-search-rs-multi-cluster/env_variables_internal.sh | CI-only variables for provisioning a simulated external multi-cluster RS. |
| docs/search/12-search-rs-multi-cluster/env_variables_e2e_private.sh | Private E2E overrides for multi-cluster kind + Ops Manager integration. |
| docs/search/12-search-rs-multi-cluster/code_snippets/12_0040_validate_env.sh | Validates required env vars and kube contexts for scenario 12. |
| docs/search/12-search-rs-multi-cluster/code_snippets/12_0045_create_namespaces.sh | Creates/labels namespaces in both clusters. |
| docs/search/12-search-rs-multi-cluster/code_snippets/12_0046_internal_create_image_pull_secrets.sh | CI-only image pull secret creation in both clusters. |
| docs/search/12-search-rs-multi-cluster/code_snippets/12_0100_install_operator.sh | Multi-cluster kubectl-mongodb setup + operator install in multi-cluster mode. |
| docs/search/12-search-rs-multi-cluster/code_snippets/12_0300_internal_create_ops_manager_resources.sh | CI-only Ops Manager Secret/ConfigMap wiring. |
| docs/search/12-search-rs-multi-cluster/code_snippets/12_0301_install_cert_manager.sh | Installs cert-manager on the central cluster. |
| docs/search/12-search-rs-multi-cluster/code_snippets/12_0302_internal_configure_tls_prerequisites.sh | CI-only TLS issuer/CA bootstrap for testing. |
| docs/search/12-search-rs-multi-cluster/code_snippets/12_0302a_internal_configure_tls_prerequisites_mongod.sh | CI-only CA ConfigMap creation in both clusters for mongod trust. |
| docs/search/12-search-rs-multi-cluster/code_snippets/12_0304_internal_generate_tls_certificates.sh | CI-only RS TLS certificate generation. |
| docs/search/12-search-rs-multi-cluster/code_snippets/12_0310_internal_create_mongodb_mc_rs.sh | CI-only simulated external RS creation via MongoDBMultiCluster. |
| docs/search/12-search-rs-multi-cluster/code_snippets/12_0315_internal_wait_for_rs.sh | Waits for the simulated multi-cluster RS to be Running. |
| docs/search/12-search-rs-multi-cluster/code_snippets/12_0315a_internal_create_mongodb_users.sh | CI-only user Secrets + MongoDBUser CRs for test flows. |
| docs/search/12-search-rs-multi-cluster/code_snippets/12_0316_create_search_sync_secret.sh | Creates Search sync password Secret on central cluster. |
| docs/search/12-search-rs-multi-cluster/code_snippets/12_0316a_create_mongot_tls_certificates.sh | Requests mongot TLS cert via cert-manager (central cluster). |
| docs/search/12-search-rs-multi-cluster/code_snippets/12_0316b_create_lb_tls_certificates.sh | Requests managed Envoy LB server/client certs for both clusters (central cluster). |
| docs/search/12-search-rs-multi-cluster/code_snippets/12_0317_replicate_search_secrets.sh | Replicates required Secrets from central to member cluster(s). |
| docs/search/12-search-rs-multi-cluster/code_snippets/12_0320_create_mongodb_search_resource.sh | Creates the MongoDBSearch resource targeting the external RS + per-cluster managed LB. |
| docs/search/12-search-rs-multi-cluster/code_snippets/12_0325_wait_for_search_resource.sh | Waits for MongoDBSearch readiness and prints mongot pods per cluster. |
| docs/search/12-search-rs-multi-cluster/code_snippets/12_0326_internal_verify_envoy_deployment.sh | CI-only verification of per-cluster managed Envoy resources. |
| docs/search/12-search-rs-multi-cluster/code_snippets/12_0330_show_running_pods.sh | Displays pods/services across clusters + MongoDBSearch resources. |
| docs/search/12-search-rs-multi-cluster/code_snippets/12_9010_internal_delete_namespace.sh | CI-only cleanup helper to delete namespaces in all clusters. |
| .evergreen-snippets.yml | Adds multi-cluster kind setup group, task, task group, and private build variant. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Add the replica-set multi-cluster Search scenario, its kind runner and context, and RS-only Evergreen task wiring. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
anandsyncs
force-pushed
the
anandsyncs-kube-170-rs-multicluster-search-snippets
branch
from
July 17, 2026 09:12
fca5325 to
2c1ec16
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Customer/internal split
internal_source-deployment steps, private E2E overrides, kind runner/context, and Evergreen task wiring.Validation
bash -nand ShellCheck for all changed shell files.git diff --check, exact pinned-source content/mode comparison, and changed-path allowlist.Evergreen proof
Full-stack Search snippets patch passed all nine Search snippet tasks: seven single-cluster and two multi-cluster.
Tracking