Skip to content

fix(mongodb): KubeBlocks 1.1 compatibility patch for MongoDB sharding#3003

Open
gnolong wants to merge 1 commit into
release-1.1from
syncer-test-kb-1.1-compat
Open

fix(mongodb): KubeBlocks 1.1 compatibility patch for MongoDB sharding#3003
gnolong wants to merge 1 commit into
release-1.1from
syncer-test-kb-1.1-compat

Conversation

@gnolong

@gnolong gnolong commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Changes:

  • Replace template functions in mongodb-shard-config.tpl and mongos-config.tpl.
  • Remove hard-coded serviceVersion: 8.0.17 from sharding ComponentDefinitions so that Cluster serviceVersion 6.0.27 can match via ComponentVersion.

@codecov-commenter

codecov-commenter commented Jul 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (34d7b17) to head (fd4e7bc).

Additional details and impacted files
@@             Coverage Diff             @@
##           release-1.1   #3003   +/-   ##
===========================================
  Coverage         0.00%   0.00%           
===========================================
  Files               73      73           
  Lines             9259    9259           
===========================================
  Misses            9259    9259           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gnolong gnolong changed the title [WIP] syncer-test: KubeBlocks 1.1 compatibility patch for MongoDB sharding fix(mongodb): KubeBlocks 1.1 compatibility patch for MongoDB sharding Jul 3, 2026
@gnolong gnolong marked this pull request as ready for review July 3, 2026 11:02
@gnolong gnolong requested review from a team, leon-ape and xuriwuyun as code owners July 3, 2026 11:02

@leon-ape leon-ape left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

mongodb-shard-config.tpl and mongos-config.tpl now hard-code /data/mongodb, while the chart still exposes values.yaml:dataMountPath and the sharding ComponentDefinitions mount the data volume from that value. With a non-default dataMountPath, the rendered volumeMount moves but dbPath/log/tmp/pid paths in the config templates stay under /data/mongodb, so sharding pods no longer use the configured data volume path.

@gnolong gnolong force-pushed the syncer-test-kb-1.1-compat branch from 6c83f06 to fd4e7bc Compare July 3, 2026 11:44
@gnolong gnolong added the nopick Not auto cherry-pick when PR merged label Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

nopick Not auto cherry-pick when PR merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants