KUBE-178: Remove the MDB_SEARCH_ENABLE_MULTI_CLUSTER feature gate#1392
Draft
anandsyncs wants to merge 1 commit into
Draft
KUBE-178: Remove the MDB_SEARCH_ENABLE_MULTI_CLUSTER feature gate#1392anandsyncs wants to merge 1 commit into
anandsyncs wants to merge 1 commit into
Conversation
Multi-cluster MongoDBSearch went GA in MCK 1.9.0, so the pre-GA feature gate that made a central/single operator reject multi-cluster specs is dead weight. Remove the env var, the helm value plumbing, the dev-context exports, and the block-regression e2e (task, task group, variant and context). Multi-cluster reconcile is now unconditional.
Contributor
MCK 1.10.0 Release NotesNew Features
Bug Fixes
Other Changes
|
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
Multi-cluster
MongoDBSearchwent GA in MCK 1.9.0, so the pre-GAMDB_SEARCH_ENABLE_MULTI_CLUSTERfeature gate is dead weight. The gate (default off, intentionally undocumented) made a central/single operator reject anyMongoDBSearchwith more than onespec.clustersentry withworkflow.Invalid. This PR removes the gate entirely: the operator now reconciles multi-clusterMongoDBSearchresources unconditionally, relying on the existing spec validators (ValidateSpec/ per-cluster index validation). Removing it is safe because the flag was never documented for customers and GA shipped the multi-cluster behavior as supported.Removed surface:
pkg/util/constants.goSearchEnableMultiClusterEnvconstcontrollers/operator/mongodbsearch_controller.gohelm_chart/templates/operator.yamlMDB_SEARCH_ENABLE_MULTI_CLUSTERenv block (search.enableMultiClustervalue)scripts/funcs/operator_deployment,scripts/dev/contexts/*tests/search/search_block_multi_cluster.py, taske2e_search_block_multi_cluster, task groupe2e_mdb_kind_search_block_task_group, variante2e_mdb_kind_ubi_cloudqa_search_blockand its context file (they existed solely to verify the gate)Proof of Work
go build ./...andgo test ./controllers/operator/... ./controllers/searchcontroller/... ./pkg/util/...pass; gate-toggling unit tests removed, and the existing multi-cluster reconcile tests (e.g.TestMongoDBSearchReconcile_Success_MultiCluster, theTestReconcile_OperatorPerCluster_*suite) now pass without any env var.helm template helm_chart --set search.enableMultiCluster=trueno longer emitsMDB_SEARCH_ENABLE_MULTI_CLUSTER; plainhelm templatesucceeds.evergreen validate .evergreen.ymlpasses (pre-existing unrelated warnings only).make precommit: all change-relevant hooks green with no generated-file drift.Checklist
skip-changeloglabel if not needed