-
Notifications
You must be signed in to change notification settings - Fork 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
Apiversion negotiation #1845
Apiversion negotiation #1845
Conversation
e914ea4
to
16bc5bf
Compare
Codecov Report
@@ Coverage Diff @@
## master #1845 +/- ##
=======================================
Coverage 56.75% 56.75%
=======================================
Files 309 309
Lines 21680 21680
=======================================
Hits 12305 12305
Misses 8476 8476
Partials 899 899 |
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
@@ -127,6 +127,8 @@ func (c *Endpoint) ClientOpts() ([]client.Opt, error) { | |||
version := os.Getenv("DOCKER_API_VERSION") | |||
if version != "" { | |||
result = append(result, client.WithVersion(version)) |
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.
WithVersion should now ignore empty values, so just adding both WithVersion and WithAPIVersionNegotiation should also work
SGTM |
ping @silvin-lubecki |
oh; needs a rebase 😔 |
…on is missing Signed-off-by: Tibor Vass <[email protected]> Signed-off-by: Sebastiaan van Stijn <[email protected]>
16bc5bf
to
c52e1f2
Compare
rebased; removed the first commit, because master was up-to-date with those changes |
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
Follow up to moby/moby#39032
Ping @thaJeztah @tonistiigi @vdemeester @AkihiroSuda