mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 09:52:49 +00:00
kubeadm: fail on docker version 1.13+, CE, and EE
This commit is contained in:
parent
3769404b32
commit
eeefd2ca87
@ -28,7 +28,7 @@ func TestValidateDockerInfo(t *testing.T) {
|
||||
Reporter: DefaultReporter,
|
||||
}
|
||||
spec := &DockerSpec{
|
||||
Version: []string{`1\.(9|\d{2,})\..*`},
|
||||
Version: []string{`1\.(9|\d?[0-2]{2,})\..*`}, // Requires 1.9+
|
||||
GraphDriver: []string{"driver_1", "driver_2"},
|
||||
}
|
||||
for _, test := range []struct {
|
||||
@ -47,6 +47,16 @@ func TestValidateDockerInfo(t *testing.T) {
|
||||
info: types.Info{Driver: "driver_2", ServerVersion: "1.8.1"},
|
||||
err: true,
|
||||
},
|
||||
// TODO remove once sig-node supports 1.13
|
||||
{
|
||||
info: types.Info{Driver: "driver_2", ServerVersion: "1.13.1"},
|
||||
err: true,
|
||||
},
|
||||
// TODO remove once sig-node supports 17.03-0-ce
|
||||
{
|
||||
info: types.Info{Driver: "driver_2", ServerVersion: "17.03.0-ce"},
|
||||
err: true,
|
||||
},
|
||||
} {
|
||||
err := v.validateDockerInfo(spec, test.info)
|
||||
if !test.err {
|
||||
|
@ -114,7 +114,7 @@ var DefaultSysSpec = SysSpec{
|
||||
Cgroups: []string{"cpu", "cpuacct", "cpuset", "devices", "freezer", "memory"},
|
||||
RuntimeSpec: RuntimeSpec{
|
||||
DockerSpec: &DockerSpec{
|
||||
Version: []string{`1\.(9|\d{2,})\..*`}, // Requires 1.9+
|
||||
Version: []string{`1\.(9|1[0-2])\..*`}, // Requires 1.9+
|
||||
// TODO(random-liu): Validate overlay2.
|
||||
GraphDriver: []string{"aufs", "overlay", "devicemapper"},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user