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 service import controller #451

Merged
merged 1 commit into from
Aug 12, 2022

Conversation

lmxia
Copy link
Contributor

@lmxia lmxia commented Aug 11, 2022

Signed-off-by: lmxia xialingming@gmail.com

What type of PR is this?

Feat add

What this PR does / why we need it:

Add serviceimport controller, running in parent cluster.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

@lmxia lmxia requested review from a team as code owners August 11, 2022 10:05
@lmxia lmxia requested a review from dixudx August 11, 2022 10:05
@dixudx dixudx added the kind/feature New feature or request label Aug 11, 2022
@dixudx dixudx added this to the v0.12.0 milestone Aug 11, 2022
pkg/controllers/mcs/serviceimport_controller.go Outdated Show resolved Hide resolved
pkg/controllers/mcs/serviceimport_controller.go Outdated Show resolved Hide resolved
srcEndpointSliceMap[fmt.Sprintf("%s-%s", item.Namespace, item.Name)] = true
}

if targetEndpointSliceList, err := targetClient.DiscoveryV1().EndpointSlices(targetNamespace).List(context.TODO(), metav1.ListOptions{
Copy link
Member

Choose a reason for hiding this comment

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

we can use endpointslice lister here.

Signed-off-by: lmxia <xialingming@gmail.com>
@lmxia lmxia force-pushed the feat/add-service-import-controller branch from 997499d to 858a836 Compare August 12, 2022 07:47
@codecov-commenter
Copy link

Codecov Report

Merging #451 (858a836) into main (0d33d17) will decrease coverage by 0.06%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #451      +/-   ##
==========================================
- Coverage   13.68%   13.61%   -0.07%     
==========================================
  Files          61       62       +1     
  Lines        6613     6667      +54     
==========================================
+ Hits          905      908       +3     
- Misses       5637     5689      +52     
+ Partials       71       70       -1     
Impacted Files Coverage Δ
...rc/github.com/clusternet/clusternet/pkg/hub/hub.go 2.72% <0.00%> (-0.07%) ⬇️
...m/clusternet/clusternet/pkg/utils/endpointslice.go 0.00% <0.00%> (ø)
...ernet/clusternet/pkg/hub/apiserver/shadow/utils.go 100.00% <0.00%> (+10.71%) ⬆️

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

@dixudx dixudx left a comment

Choose a reason for hiding this comment

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

Nice work! Thanks.

@dixudx dixudx merged commit 6dbbe19 into clusternet:main Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants