-
Notifications
You must be signed in to change notification settings - Fork 886
Use new plugin interfaces provided by plugin pkg #2199
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
Conversation
Signed-off-by: Brian Goff <cpuguy83@gmail.com> (cherry picked from commit aae1b0e) Signed-off-by: selansen <elango.siva@docker.com>
The use of `Client()` on v2 plugins is being deprecated so that we can be more flexible on the protocol used for plugins. This means checking specifically if the plugin implements the `Client() *plugins.Client` interface for V1 plugins, and for v2 plugins building a the client manually. Signed-off-by: Brian Goff <cpuguy83@gmail.com> (cherry picked from commit 45824a2) Signed-off-by: selansen <elango.siva@docker.com>
Most of the libcontainer imports was just for a single test to marshal a simple type, meanwhile this caused all kinds of transient imports that are not really needed. Signed-off-by: Brian Goff <cpuguy83@gmail.com> (cherry picked from commit a07a1ee) Signed-off-by: selansen <elango.siva@docker.com>
bf48585 to
d0b0dab
Compare
41b041c to
88323a8
Compare
e7cc7dd to
3879845
Compare
|
Ping @fcrisciani @euanh |
Dockerfile
Outdated
| github.com/gordonklaus/ineffassign \ | ||
| github.com/client9/misspell/cmd/misspell \ | ||
| honnef.co/go/tools/cmd/gosimple | ||
| honnef.co/go/tools/cmd/gosimple |
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.
remove the extra space here
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.
fixed it
vendor.conf
Outdated
| github.com/deckarep/golang-set ef32fa3046d9f249d399f98ebaf9be944430fd1d | ||
|
|
||
| github.com/docker/docker 162ba6016def672690ee4a1f3978368853a1e149 | ||
| github.com/docker/docker 162ba6016def672690ee4a1f3978368853a1e149 |
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.
remove extra space
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.
Fixed it
| return nil | ||
| } | ||
|
|
||
| func getPluginClient(p plugingetter.CompatPlugin) (*plugins.Client, error) { |
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.
isn't this function declared twice in the same remote package?
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.
Yes this has been declared twice but in different packages.
github.com/docker/libnetwork/IPAMS/remote
github.com/docker/libnetwork/drivers/remote
I thought its same package initially and wasted my time figuring out why it throws error when I remove one API definition :(
Signed-off-by: Brian Goff <cpuguy83@gmail.com> (cherry picked from commit 8856c1e) Signed-off-by: selansen <elango.siva@docker.com>
3879845 to
64aae14
Compare
|
Error seems to be due to cloud provider :)..not coz our PR !!! |
|
LGTM |
fcrisciani
left a comment
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.
LGTM
This is follow up of #2174.
I fixed all test case failures.
Description:
The use of Client() on v2 plugins is being deprecated so that we can be more flexible on the protocol used for plugins.
This means checking specifically if the plugin implements the Client() *plugins.Client interface for V1 plugins, and for v2 plugins building a the client manually.