Skip to content

Apiversion negotiation - #1845

Merged
silvin-lubecki merged 1 commit into
docker:masterfrom
tiborvass:apiversion-negotiation
May 14, 2019
Merged

Apiversion negotiation#1845
silvin-lubecki merged 1 commit into
docker:masterfrom
tiborvass:apiversion-negotiation

Conversation

@tiborvass

Copy link
Copy Markdown
Collaborator

@codecov-io

codecov-io commented Apr 23, 2019

Copy link
Copy Markdown

Codecov Report

Merging #1845 into master will not change coverage.
The diff coverage is n/a.

@@ Coverage Diff @@## master #1845 +/- ##
=======================================
Coverage 56.75% 56.75% =======================================
Files 309 309 Lines 21680 21680 =======================================
Hits 12305 12305 Misses 8476 8476 Partials 899 899

@thaJeztahthaJeztah left a comment

Copy link
Copy Markdown
Member

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))

Copy link
Copy Markdown
Member

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

@andrewhsu

Copy link
Copy Markdown
Contributor

SGTM

@thaJeztah

Copy link
Copy Markdown
Member

ping @silvin-lubecki

@thaJeztah

Copy link
Copy Markdown
Member

oh; needs a rebase 😔

…on is missing
Signed-off-by: Tibor Vass <tibor@docker.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah
thaJeztahforce-pushed the apiversion-negotiation branch from 16bc5bf to c52e1f2CompareMay 14, 2019 00:37
@thaJeztah

Copy link
Copy Markdown
Member

rebased; removed the first commit, because master was up-to-date with those changes

@silvin-lubeckisilvin-lubecki left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@silvin-lubecki
silvin-lubecki merged commit 873afb9 into docker:masterMay 14, 2019
@GordonTheTurtleGordonTheTurtle added this to the 19.09.0 milestone May 14, 2019
Sign up for freeto 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.

6 participants

@tiborvass@codecov-io@andrewhsu@thaJeztah@silvin-lubecki@GordonTheTurtle