karmada icon indicating copy to clipboard operation
karmada copied to clipboard

support unregister cluster in karmada

Open wulemao opened this issue 1 year ago • 2 comments

What type of PR is this?

/kind feature

What this PR does / why we need it:

support unregister cluster in karmada

Which issue(s) this PR fixes:

Fixes part of #5380

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

karmadactl: support unregister a pull mode cluster

wulemao avatar Sep 30 '24 02:09 wulemao

:warning: Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 0.39526% with 252 lines in your changes missing coverage. Please review.

Project coverage is 41.50%. Comparing base (e204459) to head (f803efe). Report is 18 commits behind head on master.

Files with missing lines Patch % Lines
pkg/karmadactl/unregister/unregister.go 0.00% 216 Missing :warning:
pkg/karmadactl/util/cluster.go 0.00% 28 Missing :warning:
pkg/util/secret.go 0.00% 6 Missing :warning:
pkg/karmadactl/karmadactl.go 0.00% 1 Missing :warning:
pkg/karmadactl/unjoin/unjoin.go 0.00% 1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5626      +/-   ##
==========================================
+ Coverage   40.85%   41.50%   +0.64%     
==========================================
  Files         651      655       +4     
  Lines       55259    55741     +482     
==========================================
+ Hits        22577    23136     +559     
+ Misses      31240    31105     -135     
- Partials     1442     1500      +58     
Flag Coverage Δ
unittests 41.50% <0.39%> (+0.64%) :arrow_up:

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov-commenter avatar Sep 30 '24 02:09 codecov-commenter

latest test report:

图片

wulemao avatar Oct 24 '24 09:10 wulemao

According to what we communicated offline, pr is updated

@chaosi-zju ready to review

wulemao avatar Oct 24 '24 09:10 wulemao

/lgtm

/cc @zhzhuang-zju @RainbowMango help a look

chaosi-zju avatar Oct 24 '24 09:10 chaosi-zju

@chaosi-zju: GitHub didn't allow me to request PR reviews from the following users: a, look.

Note that only karmada-io members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

/lgtm

/cc @zhzhuang-zju @RainbowMango help a look

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

karmada-bot avatar Oct 24 '24 09:10 karmada-bot

updated, latest test result:

图片

is there any more comments?

wulemao avatar Oct 26 '24 03:10 wulemao

图片

updated, thank you for checking again.

wulemao avatar Oct 26 '24 10:10 wulemao

thanks~ others LGTM

zhzhuang-zju avatar Oct 28 '24 02:10 zhzhuang-zju

comments fixed, any more comments? @RainbowMango

wulemao avatar Oct 28 '24 06:10 wulemao

https://github.com/karmada-io/karmada/blob/2a4567cbcc9a305baf977ba66133b9c55108347b/pkg/controllers/certificate/cert_rotation_controller.go#L52-L60

@wulemao @chaosi-zju CertRotationController in karmad-agent will look up and update the secret karmada-kubeconfig, which has been renamed to karmada-agent-config. We can use func getKarmadaAgentConfig to optimize this hard-coded section.

zhzhuang-zju avatar Oct 28 '24 11:10 zhzhuang-zju

updated, latest test result:

图片

wulemao avatar Oct 28 '24 12:10 wulemao

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: RainbowMango

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

karmada-bot avatar Oct 28 '24 13:10 karmada-bot