-
Notifications
You must be signed in to change notification settings - Fork 616
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
[Carry #1517] Support v2 plugins; re-enable scheduler plugin filter #1808
Conversation
Signed-off-by: Nishant Totla <nishanttotla@gmail.com>
Be consistent between SetTask and Check on which mounts are checked against the plugin list. Be more defensive against nil pointer dereferences. Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
This endpoint may not always be implemented or supported. Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
Current coverage is 55.36% (diff: 44.44%)@@ master #1808 diff @@
==========================================
Files 102 102
Lines 16941 16957 +16
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 9338 9388 +50
+ Misses 6444 6410 -34
Partials 1159 1159
|
SGTM, workflow looks good |
for _, plgn := range v2plugins { | ||
for _, typ := range plgn.Config.Interface.Types { | ||
if typ.Prefix == "docker" && plgn.Enabled { | ||
plgnTyp := typ.Capability |
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 a good idea to be coercing capability to type?
What if there are multi-capability plugins?
} | ||
plgnName := plgn.Name | ||
if plgn.Tag != "" { | ||
plgnName += ":" + plgn.Tag |
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.
For all of our effort, how did Tag end up being separated in plugins? Can we please fix this?
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.
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.
Odd, when I went through search, field was still there.
func (f *PluginFilter) pluginExistsOnNode(pluginType string, pluginName string, nodePlugins []api.PluginDescription) bool { | ||
for _, np := range nodePlugins { | ||
if pluginType == np.Type && pluginName == np.Name { | ||
if pluginType != np.Type { |
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 this comparison case sensitive?
This carries #1517:
On top of this, it adds:
Describe
ifPluginList
is unimplementedcc @nishanttotla @aluzzardi @vieux @anusha-ragunathan @tonistiigi