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
enable mcs to support headless-svc #3372
base: master
Are you sure you want to change the base?
Conversation
Just a question,why do you need to enable mcs to support headless-svc? When ServiceImportType is Headless, it should be ignored Refer to shouldIgnoreImport |
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## master #3372 +/- ##
=======================================
Coverage 51.61% 51.62%
=======================================
Files 210 210
Lines 18922 18922
=======================================
+ Hits 9767 9768 +1
+ Misses 8629 8628 -1
Partials 526 526
Flags with carried forward coverage won't be shown. Click here to find out more. see 1 file with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
I have a use case that requires mcs to support headless-svc, but I don’t understand why mcs-api doesn’t support it. However, I think this is a useful feature. |
c98ec5f
to
b1fbec5
Compare
Thanks~ @wenchezhao How do you use the headless service? Can you give your test report? Maybe we can perfect our MCS documentation. |
Nothing special, a statefulset application, the svc is headless, and when the svc is exported, it also needs to be headless. Therefore, the type of ServiceImport needs to be Headless. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/assign @XiShanYongYe-Chang
@wenchezhao, can you post your test report? |
hi, @XiShanYongYe-Chang this is my test yaml. If you need anything else, please let me know.
|
Hi @wenchezhao, thanks for your quick response, have you successfully tested the headless service on your local site? |
yes, after I made the changes, the headless-svc can be imported into the target cluster. |
Hi @wenchezhao, I'd like to know some more information, please don't mind. How do you access the headless service in the import cluster, through the domain name? |
@XiShanYongYe-Chang yes, through the domain name. that’s exactly what I want to do next. I plan to write a coredns plugin to solve related problems. |
Thanks for you confirm.
Would you mind creating a new issue to track this task? And I'm interested in it, we can continue to discuss the solution. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally LGTM, can you help squash the commits into one?
ok, no problem. |
why squash the commits into one?I think these are two separate things, so I deliberately submitted them in two separate times. |
I understand why you set two commits. Currently, the new label does not seem to be used. Personally, a single commit may be confusing. |
Signed-off-by: wenche <wenchuan.zhao@qq.com>
b1fbec5
to
313065f
Compare
I have already made the changes. |
Thanks~ @RainbowMango Can you help rerun the e2e. I'm modifying the incorrect case. |
Done. |
/lgtm |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: XiShanYongYe-Chang The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/assign
@chaunceyjiang Do you have any comments? |
Just a suggestion, can we contribute this patch to upstream? See what upstream has to say about this patch. |
Yes, we can talk about it with upstream guys. But, what's your opinion? |
My point is to let this pr wait for a while, the next release version of Karmada still has a long time. We can discuss clearly in the upstream before deciding whether to merge this pr. |
My core thought is that |
What type of PR is this?
/kind feature
What this PR does / why we need it:
enable mcs to support headless-svc
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: