Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: support resolving vars from multiple components consistently #8816

Merged
merged 2 commits into from
Jan 21, 2025

Conversation

leon-inf
Copy link
Contributor

@leon-inf leon-inf commented Jan 16, 2025

@leon-inf leon-inf added this to the Release 1.0.0 milestone Jan 16, 2025
@github-actions github-actions bot added the size/L Denotes a PR that changes 100-499 lines. label Jan 16, 2025
@shanshanying
Copy link
Contributor

@leon-inf leon-inf force-pushed the support/resolve-vars-from-sharding-components branch from 9775af9 to 6c846eb Compare January 16, 2025 06:52
Copy link

codecov bot commented Jan 16, 2025

Codecov Report

Attention: Patch coverage is 77.89474% with 21 lines in your changes missing coverage. Please review.

Project coverage is 60.99%. Comparing base (982672d) to head (b1632cf).
Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
controllers/apps/shardingdefinition_controller.go 58.13% 12 Missing and 6 partials ⚠️
pkg/controller/component/vars.go 88.88% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8816      +/-   ##
==========================================
+ Coverage   60.34%   60.99%   +0.65%     
==========================================
  Files         381      382       +1     
  Lines       46215    46900     +685     
==========================================
+ Hits        27889    28608     +719     
+ Misses      15654    15611      -43     
- Partials     2672     2681       +9     
Flag Coverage Δ
unittests 60.99% <77.89%> (+0.65%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@leon-inf leon-inf force-pushed the support/resolve-vars-from-sharding-components branch from 6c846eb to 8edcabe Compare January 16, 2025 07:06
@leon-inf leon-inf force-pushed the support/resolve-vars-from-sharding-components branch from 8edcabe to f1017e3 Compare January 16, 2025 07:32
@github-actions github-actions bot added size/XL Denotes a PR that changes 500-999 lines. and removed size/L Denotes a PR that changes 100-499 lines. labels Jan 16, 2025
@leon-inf leon-inf marked this pull request as ready for review January 16, 2025 07:33
@leon-inf leon-inf requested review from Y-Rookie and a team as code owners January 16, 2025 07:33
}
return nil
}

func (r *ShardingDefinitionReconciler) requireParallelProvision() bool {
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add some comments to explain why parallel provisioning is needed when some of the RequireAllComponentObjects fields are set to true.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@apecloud-bot apecloud-bot added the approved PR Approved Test label Jan 16, 2025
@apecloud-bot apecloud-bot removed the approved PR Approved Test label Jan 17, 2025
@leon-inf
Copy link
Contributor Author

/approve

@apecloud-bot apecloud-bot added the approved PR Approved Test label Jan 21, 2025
@leon-inf leon-inf merged commit 1f8a679 into main Jan 21, 2025
36 checks passed
@leon-inf leon-inf deleted the support/resolve-vars-from-sharding-components branch January 21, 2025 02:18
@leon-inf
Copy link
Contributor Author

/cherry-pick release-1.0-beta

@apecloud-bot
Copy link
Collaborator

🤖 says: cherry pick action finished successfully 🎉!
See: https://github.com/apecloud/kubeblocks/actions/runs/12878859060

apecloud-bot pushed a commit that referenced this pull request Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved PR Approved Test size/XL Denotes a PR that changes 500-999 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] clickhouse shard num something mismatch
4 participants