-
Notifications
You must be signed in to change notification settings - Fork 152
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
Lds basic #417
Lds basic #417
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #417 +/- ##
===========================================
+ Coverage 36.61% 37.58% +0.96%
===========================================
Files 55 55
Lines 3654 3720 +66
===========================================
+ Hits 1338 1398 +60
- Misses 2164 2166 +2
- Partials 152 156 +4
Continue to review full report at Codecov.
|
} | ||
|
||
// setupListeners setup listeners accord to dynamic resource | ||
func (l *LdsManager) setupListeners(listeners []*xdsModel.Listener) { | ||
//Make sure each one has a unique name like "host-port-protocol" | ||
for _, v := range listeners { | ||
v.Name = resolveListenerName(v.Address.SocketAddress.Address, int(v.Address.SocketAddress.Port), v.Protocol.String()) |
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.
is it possible that v.Name has it's value. check it is nil then call resolveListenerName ?
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.
The listener’s name is useless now, so just overwritten it. if we need this, then change it later, but not now.
* basic * simple reload * simple reload * simple reload * simple reload * simple reload * http2_listener.go * fix ut * dubbo/triple done * dubbo/triple done * ut for lds * switch to github.com/dubbo-go-pixiu/pixiu-api * imports-formatter * fix ci * fix ci * mod fmt * mod fmt Co-authored-by: mark4z <mark4z.vip@gmail.com>
* basic * simple reload * simple reload * simple reload * simple reload * simple reload * http2_listener.go * fix ut * dubbo/triple done * dubbo/triple done * ut for lds * switch to github.com/dubbo-go-pixiu/pixiu-api * imports-formatter * fix ci * fix ci * mod fmt * mod fmt Co-authored-by: mark4z <mark4z.vip@gmail.com>
What this PR does:
LDS support for each listener
Which issue(s) this PR fixes:
Special notes for your reviewer:
Notes:
Does this PR introduce a user-facing change?: