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

Lds basic #417

Merged
merged 24 commits into from
May 10, 2022
Merged

Lds basic #417

merged 24 commits into from
May 10, 2022

Conversation

mark4z
Copy link
Member

@mark4z mark4z commented May 1, 2022

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?:


@codecov-commenter
Copy link

Codecov Report

Merging #417 (f91fa1c) into develop (2b24d46) will increase coverage by 0.96%.
The diff coverage is 29.72%.

@@             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     
Impacted Files Coverage Δ
...registry/zookeeper/application_service_listener.go 0.00% <ø> (ø)
...oregistry/registry/zookeeper/interface_listener.go 10.00% <ø> (ø)
...bboregistry/registry/zookeeper/service_listener.go 0.00% <ø> (ø)
pkg/client/dubbo/dubbo.go 18.83% <ø> (ø)
pkg/client/dubbo/mapper.go 69.23% <ø> (ø)
pkg/client/http/mapper.go 72.72% <ø> (ø)
pkg/client/mapper.go 80.95% <ø> (ø)
pkg/client/request.go 0.00% <ø> (ø)
pkg/common/extension/filter/filter.go 15.21% <ø> (ø)
pkg/config/api_config.go 3.13% <ø> (ø)
... and 13 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2b24d46...f91fa1c. Read the comment docs.

}

// 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())
Copy link
Contributor

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 ?

Copy link
Member Author

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.

pkg/config/xds/lds_test.go Show resolved Hide resolved
pkg/listener/http/http_listener.go Show resolved Hide resolved
samples/grpc/pixiu/conf.yaml Show resolved Hide resolved
@PhilYue PhilYue requested review from cityiron and PhilYue May 8, 2022 14:05
@ztelur ztelur merged commit bcc678d into apache:develop May 10, 2022
@mark4z mark4z deleted the lds_basic branch May 11, 2022 05:59
@PhilYue PhilYue added this to the v0.5.1 milestone Jul 9, 2022
A-Wanderer pushed a commit to A-Wanderer/dubbo-go-pixiu that referenced this pull request Jul 21, 2022
* 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>
bobtthp pushed a commit to bobtthp/dubbo-go-pixiu that referenced this pull request Dec 12, 2022
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants