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

feature: add plugin point before endpoint creating #1124

Merged
merged 1 commit into from
Apr 13, 2018

Conversation

yyb196
Copy link
Collaborator

@yyb196 yyb196 commented Apr 13, 2018

Signed-off-by: Frank Yang yyb196@gmail.com

Ⅰ. Describe what this PR did

which enables users to setup priority of endpoint and decide whether enable libnetwork resolver
to this endpoint and setup generic params of this endpoint.

Because one container may have multiple endpoints, users may want to keep the endpoint order whenever this container is started, this plugins enables users to do just that, priority more big the endpoint will be placed fronter.

Iptables may incurs performance issue, resolver in libnetwork use iptables to do its logic, some users want to disable it, and this plugin enable user to do it.

When creating a endpoint via remote plugin, users may want to pass more params to remote, this plugin enables users to specified generic params of the endpoint, which will be passed to the remote plugin by param options.

Ⅱ. Does this pull request fix one issue?

Ⅲ. Describe how you did it

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@rudyfly PTAL

@yyb196 yyb196 changed the title feature: add plugin point of endpoint creating which enables users to feature: add plugin point before endpoint creating Apr 13, 2018
setup priority of endpoint and decide whether enable libnetwork resolver
 to this endpoint and setup generic params of this endpoint.

Signed-off-by: Frank Yang <yyb196@gmail.com>
@codecov-io
Copy link

codecov-io commented Apr 13, 2018

Codecov Report

Merging #1124 into master will decrease coverage by 0.19%.
The diff coverage is 0%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #1124     +/-   ##
========================================
- Coverage    15.7%   15.5%   -0.2%     
========================================
  Files         172     172             
  Lines        9620    9581     -39     
========================================
- Hits         1511    1486     -25     
+ Misses       8000    7991      -9     
+ Partials      109     104      -5
Impacted Files Coverage Δ
daemon/mgr/container.go 4.98% <0%> (-0.02%) ⬇️
daemon/mgr/network.go 3.47% <0%> (-0.06%) ⬇️
client/client.go 35% <0%> (-15%) ⬇️
cli/cli.go 0% <0%> (ø) ⬆️
cli/main.go 0% <0%> (ø) ⬆️
cli/run.go 0% <0%> (ø) ⬆️
cli/start.go 0% <0%> (ø) ⬆️
pkg/utils/utils.go 83.11% <0%> (+4.96%) ⬆️
pkg/kernel/kernel.go 100% <0%> (+27.27%) ⬆️

@rudyfly rudyfly merged commit c37e2d2 into AliyunContainerService:master Apr 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants