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

cleanup pkg import in main function #3012

Merged
merged 1 commit into from
Jan 1, 2023
Merged

Conversation

Garrybest
Copy link
Member

Signed-off-by: Garrybest garrybest@foxmail.com

What type of PR is this?
/kind cleanup

What this PR does / why we need it:
Using controllerruntime.SetupSignalHandler() instead of apiserver.SetupSignalContext() to avoid import k8s.io/apiserver/pkg/server before sigs.k8s.io/controller-runtime/pkg/metrics. Refer to #2899.

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

@karmada-bot karmada-bot added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label Dec 30, 2022
@karmada-bot karmada-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Dec 30, 2022
Signed-off-by: Garrybest <garrybest@foxmail.com>
@codecov-commenter
Copy link

Codecov Report

Merging #3012 (8312a60) into master (4d9b23f) will increase coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #3012      +/-   ##
==========================================
+ Coverage   38.66%   38.67%   +0.01%     
==========================================
  Files         206      206              
  Lines       18815    18815              
==========================================
+ Hits         7274     7276       +2     
+ Misses      11114    11112       -2     
  Partials      427      427              
Flag Coverage Δ
unittests 38.67% <ø> (+0.01%) ⬆️

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

Impacted Files Coverage Δ
pkg/search/proxy/store/util.go 94.31% <0.00%> (+0.94%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Member

@XiShanYongYe-Chang XiShanYongYe-Chang left a comment

Choose a reason for hiding this comment

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

/lgtm
/cc @Poor12

@karmada-bot karmada-bot requested a review from Poor12 December 30, 2022 09:12
@karmada-bot karmada-bot added the lgtm Indicates that a PR is ready to be merged. label Dec 30, 2022
Copy link
Member

@RainbowMango RainbowMango left a comment

Choose a reason for hiding this comment

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

/approve

@karmada-bot
Copy link
Collaborator

[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 karmada-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 1, 2023
@RainbowMango
Copy link
Member

Good Job!

@karmada-bot karmada-bot merged commit 06fa41c into karmada-io:master Jan 1, 2023
@Garrybest Garrybest deleted the pr_ctx branch January 2, 2023 01:27
@RainbowMango RainbowMango added this to the v1.5 milestone Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants