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

Feat/make all masters equal and make join cmd more robust #2218

Merged
merged 3 commits into from
May 15, 2023

Conversation

VinceCui
Copy link
Collaborator

Describe what this PR does / why we need it

This PR support the follow abilities:

  • Support clean of an unsuccessfully installed master/node
  • Make all masters equal and NOT allow clean master from itself
  • When some node missing or passwd changed, will not block scaling up new nodes
  • When some node missing or passwd changed, support scaling down them directly
  • Force specify PATH env to avoid executable files that cannot be found in some environments
  • Improve some error lint.

Does this pull request fix one issue?

Describe how you did it

Describe how to verify it

Special notes for reviews

Signed-off-by: huaiyou <huaiyou.cyz@alibaba-inc.com>
Signed-off-by: huaiyou <huaiyou.cyz@alibaba-inc.com>
@VinceCui VinceCui requested a review from kakaZhou719 May 15, 2023 06:39
Signed-off-by: huaiyou <huaiyou.cyz@alibaba-inc.com>
@codecov-commenter
Copy link

codecov-commenter commented May 15, 2023

Codecov Report

Patch coverage has no change and project coverage change: -6.46 ⚠️

Comparison is base (150c4cb) 19.93% compared to head (116f29a) 13.47%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2218      +/-   ##
==========================================
- Coverage   19.93%   13.47%   -6.46%     
==========================================
  Files          98      263     +165     
  Lines        9220    22757   +13537     
==========================================
+ Hits         1838     3067    +1229     
- Misses       7128    19280   +12152     
- Partials      254      410     +156     
Flag Coverage Δ
e2e-tests 9.10% <ø> (?)
unit-tests 19.84% <0.00%> (-0.10%) ⬇️

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

Impacted Files Coverage Δ
pkg/cluster-runtime/scale.go 0.00% <0.00%> (ø)
pkg/cluster-runtime/uninstall.go 0.00% <0.00%> (ø)
pkg/cluster-runtime/utils.go 0.00% <0.00%> (ø)
utils/net/iputils.go 43.04% <0.00%> (-0.88%) ⬇️
utils/ssh/sshcmd.go 0.00% <0.00%> (ø)

... and 165 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

if err := k.infra.Copy(host, k.getPKIPath(), clustercert.KubeDefaultCertPath); err != nil {
return fmt.Errorf("failed to copy cluster cert: %v", err)
}
if err := k.infra.Copy(host, k.getPKIPath(), k.getPKIPath()); err != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

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

What does this mean?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

transform pki to all master's rootfs, so when master0 down, other master can scale up cluster.

Copy link
Collaborator

@starnop starnop left a comment

Choose a reason for hiding this comment

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

LGTM

@starnop starnop merged commit a593435 into sealerio:main May 15, 2023
10 of 11 checks passed
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.

None yet

3 participants