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

add inclusterconfig filter for commenting kube-proxy configmap #1158

Merged
merged 1 commit into from
Jan 18, 2023

Conversation

rambohe-ch
Copy link
Member

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:
/kind bug
/kind documentation
/kind enhancement
/kind good-first-issue
/kind feature
/kind question
/kind design
/sig ai
/sig iot
/sig network
/sig storage

/kind feature

What this PR does / why we need it:

  1. add inclusterconfig filter for commenting kubeconfig setting in kube-system/kube-proxy configmap, in order to make kube-proxy on nodes with yurthub(like edge nodes) to use InClusterConfig to access kube-apiserver. at the same time, kube-proxy on master nodes without yurthub can use kubeconfig to access kube-apiserver.

  2. delete kube-proxy configure in yurtctl init test command.

Which issue(s) this PR fixes:

Fixes #1127

Special notes for your reviewer:

Does this PR introduce a user-facing change?


other Note

@openyurt-bot
Copy link
Collaborator

@rambohe-ch: GitHub didn't allow me to assign the following users: your_reviewer.

Note that only openyurtio members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time.
For more information please see the contributor guide

In response to this:

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:
/kind bug
/kind documentation
/kind enhancement
/kind good-first-issue
/kind feature
/kind question
/kind design
/sig ai
/sig iot
/sig network
/sig storage

/kind feature

What this PR does / why we need it:

  1. add inclusterconfig filter for commenting kubeconfig setting in kube-system/kube-proxy configmap, in order to make kube-proxy on nodes with yurthub(like edge nodes) to use InClusterConfig to access kube-apiserver. at the same time, kube-proxy on master nodes without yurthub can use kubeconfig to access kube-apiserver.

  2. delete kube-proxy configure in yurtctl init test command.

Which issue(s) this PR fixes:

Fixes #1127

Special notes for your reviewer:

Does this PR introduce a user-facing change?


other Note

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/test-infra repository.

@openyurt-bot openyurt-bot added the kind/feature kind/feature label Jan 17, 2023
@openyurt-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rambohe-ch

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

@rambohe-ch
Copy link
Member Author

@Congrool @LaurenceLiZhixin PTAL

@codecov
Copy link

codecov bot commented Jan 17, 2023

Codecov Report

Merging #1158 (a5cbc88) into master (dbd9342) will increase coverage by 0.03%.
The diff coverage is 67.30%.

@@            Coverage Diff             @@
##           master    #1158      +/-   ##
==========================================
+ Coverage   55.59%   55.63%   +0.03%     
==========================================
  Files          98      100       +2     
  Lines       12881    12910      +29     
==========================================
+ Hits         7161     7182      +21     
- Misses       5091     5102      +11     
+ Partials      629      626       -3     
Flag Coverage Δ
unittests 55.63% <67.30%> (+0.03%) ⬆️

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

Impacted Files Coverage Δ
pkg/yurtctl/cmd/yurttest/kindinit/init.go 56.90% <ø> (-0.21%) ⬇️
pkg/yurthub/filter/inclusterconfig/filter.go 0.00% <0.00%> (ø)
pkg/yurthub/filter/inclusterconfig/handler.go 100.00% <100.00%> (ø)
pkg/yurthub/filter/manager/manager.go 75.92% <100.00%> (+0.45%) ⬆️

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

if err := ki.ConfigureKubeProxyAddon(); err != nil {
return err
}
//if err := ki.ConfigureKubeProxyAddon(); err != nil {
Copy link
Member

Choose a reason for hiding this comment

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

I guess this function should be deleted.

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

Copy link
Member

@Congrool Congrool left a comment

Choose a reason for hiding this comment

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

/lgtm

@openyurt-bot openyurt-bot added the lgtm lgtm label Jan 18, 2023
@openyurt-bot openyurt-bot merged commit 29714fb into openyurtio:master Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved approved kind/feature kind/feature lgtm lgtm size/L size/L: 100-499
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Question] How to install openyurt on multiple control-plane and worker nodes?
4 participants