mirror of https://github.com/k3s-io/k3s
Merge pull request #20335 from aveshagarwal/master-integration-tests-issue
Fix docker version errors in integration tests.pull/6/head
commit
5c53b3a13b
|
@ -32,7 +32,6 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
docker "github.com/fsouza/go-dockerclient"
|
||||
kubeletapp "k8s.io/kubernetes/cmd/kubelet/app"
|
||||
"k8s.io/kubernetes/pkg/api"
|
||||
apierrors "k8s.io/kubernetes/pkg/api/errors"
|
||||
|
@ -201,7 +200,6 @@ func startComponents(firstManifestURL, secondManifestURL string) (string, string
|
|||
testRootDir := integration.MakeTempDirOrDie("kubelet_integ_1.", "")
|
||||
configFilePath := integration.MakeTempDirOrDie("config", testRootDir)
|
||||
glog.Infof("Using %s as root dir for kubelet #1", testRootDir)
|
||||
fakeDocker1.VersionInfo = docker.Env{"ApiVersion=1.20"}
|
||||
cm := cm.NewStubContainerManager()
|
||||
kcfg := kubeletapp.SimpleKubelet(
|
||||
cl,
|
||||
|
@ -234,7 +232,6 @@ func startComponents(firstManifestURL, secondManifestURL string) (string, string
|
|||
// have a place they can schedule.
|
||||
testRootDir = integration.MakeTempDirOrDie("kubelet_integ_2.", "")
|
||||
glog.Infof("Using %s as root dir for kubelet #2", testRootDir)
|
||||
fakeDocker2.VersionInfo = docker.Env{"ApiVersion=1.20"}
|
||||
|
||||
kcfg = kubeletapp.SimpleKubelet(
|
||||
cl,
|
||||
|
|
|
@ -57,7 +57,7 @@ type FakeDockerClient struct {
|
|||
|
||||
func NewFakeDockerClient() *FakeDockerClient {
|
||||
return &FakeDockerClient{
|
||||
VersionInfo: docker.Env{"Version=1.1.3", "ApiVersion=1.15"},
|
||||
VersionInfo: docker.Env{"Version=1.8.1", "ApiVersion=1.20"},
|
||||
Errors: make(map[string]error),
|
||||
RemovedImages: sets.String{},
|
||||
ContainerMap: make(map[string]*docker.Container),
|
||||
|
|
Loading…
Reference in New Issue