-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Network filter #2301
Network filter #2301
Conversation
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.
Shouldn't it be both scope
and driver
when API has the required version (or above) ?
provider/docker/docker.go
Outdated
networkListArgs := filters.NewArgs() | ||
networkListArgs.Add("scope", "swarm") | ||
// https://docs.docker.com/engine/api/v1.29/#tag/Network (Docker 17.06) | ||
if hasRequiredAPIVersion(serverVersion.APIVersion, "1.29", true) { |
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.
Reading this, it makes me thinks it's only for 1.29
, where it's on 1.29
and above right ?
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.
it's >1.29
provider/docker/docker_test.go
Outdated
test := test | ||
t.Run(test.desc, func(t *testing.T) { | ||
|
||
state := hasRequiredAPIVersion2(test.baseVersion, test.requiredVersion, test.fallbackState) |
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.
typo ? (hasRequireAPIVersion2
?)
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.
(and other question, it's not exported, should we really test that ? 😛)
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.
Ah, and there is /~https://github.com/moby/moby/blob/master/api/types/versions/compare.go too 👼
3c1f56f
to
e179369
Compare
@vdemeester |
e179369
to
103cd47
Compare
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 👏 🐳
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 🐮
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
103cd47
to
5c0fe6e
Compare
@ldez Thanks for the fix! When I opened #2275 right when 1.4.0 came out I assumed it was a wontfix since I was on an old docker version, so I closed it prematurely. Then I see it got fixed as a P0 in #2297. I had been using the RC series for the json access logs -> stdout -> cloudwatch, so this lets me get to the GA series. |
Description
Regression from #2244
Fixes #2297