Use existing method to get Docker version.

This commit is contained in:
Wojciech Tyczynski
2015-02-04 20:50:21 +01:00
parent 78f66a6ce9
commit ead67108ce
6 changed files with 35 additions and 21 deletions

View File

@@ -42,7 +42,7 @@ type fakeKubelet struct {
boundPodsFunc func() ([]api.BoundPod, error)
logFunc func(w http.ResponseWriter, req *http.Request)
runFunc func(podFullName string, uid types.UID, containerName string, cmd []string) ([]byte, error)
dockerVersionFunc func() (string, error)
dockerVersionFunc func() ([]uint, error)
containerLogsFunc func(podFullName, containerName, tail string, follow bool, stdout, stderr io.Writer) error
}
@@ -62,7 +62,7 @@ func (fk *fakeKubelet) GetRootInfo(req *info.ContainerInfoRequest) (*info.Contai
return fk.rootInfoFunc(req)
}
func (fk *fakeKubelet) GetDockerVersion() (string, error) {
func (fk *fakeKubelet) GetDockerVersion() ([]uint, error) {
return fk.dockerVersionFunc()
}