Skip to content

Commit

Permalink
Merge pull request #8890 from hakman/fix-tests-1.16
Browse files Browse the repository at this point in the history
Fix tests for obsolete Docker versions in 1.16
  • Loading branch information
k8s-ci-robot authored Apr 10, 2020
2 parents 21039af + 3beac4e commit 5615767
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
10 changes: 1 addition & 9 deletions pkg/model/components/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,8 @@ func (b *DockerOptionsBuilder) BuildOptions(o interface{}) error {
dockerVersion = "18.09.9"
} else if sv.Major == 1 && sv.Minor >= 12 {
dockerVersion = "18.06.3"
} else if sv.Major == 1 && sv.Minor >= 9 {
} else {
dockerVersion = "17.03.2"
} else if sv.Major == 1 && sv.Minor >= 8 {
dockerVersion = "1.13.1"
} else if sv.Major == 1 && sv.Minor >= 6 {
dockerVersion = "1.12.6"
} else if sv.Major == 1 && sv.Minor >= 5 {
dockerVersion = "1.12.3"
} else if sv.Major == 1 && sv.Minor <= 4 {
dockerVersion = "1.11.2"
}

if dockerVersion == "" {
Expand Down
4 changes: 2 additions & 2 deletions upup/pkg/fi/cloudup/populatecluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,11 +469,11 @@ func TestPopulateCluster_DockerVersion(t *testing.T) {
}{
{
KubernetesVersion: "1.4.6",
DockerVersion: "1.11.2",
DockerVersion: "17.03.2",
},
{
KubernetesVersion: "1.5.1",
DockerVersion: "1.12.3",
DockerVersion: "17.03.2",
},
}

Expand Down

0 comments on commit 5615767

Please sign in to comment.