Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC: Kubelet: a step towards to better encapsulation of docker functions #6378

Merged
merged 1 commit into from
Apr 2, 2015

Conversation

yujuhong
Copy link
Contributor

@yujuhong yujuhong commented Apr 2, 2015

We want to stop leaking more docker details into kubelet, and we also want to
consolidate some of the existing docker interfaces/structs. This change creates
DockerManager as the new home of some functions in dockertools/docker.go. It
also absorbs containerRunner. In addition, GetDockerPodStatus is renamed to
GetPodStatus with the entire pod passed to it so that it is simialr to the what
is defined in the container Runtime interface.

Eventually, DockerManager should implement the container Runtime interface, and
integrate DockerCache with a flag to turn on/off caching. Code in kubelet.go
should not be using docker client directly.

We want to stop leaking more docker details into kubelet, and we also want to
consolidate some of the existing docker interfaces/structs. This change creates
DockerManager as the new home of some functions in dockertools/docker.go. It
also absorbs containerRunner. In addition, GetDockerPodStatus is renamed to
GetPodStatus with the entire pod passed to it so that it is simialr to the what
is defined in the container Runtime interface.

Eventually, DockerManager should implement the container Runtime interface, and
integrate DockerCache with a flag to turn on/off caching. Code in kubelet.go
should not be using docker client directly.
@yujuhong
Copy link
Contributor Author

yujuhong commented Apr 2, 2015

/cc @vmarmol, @yifan-gu

@yujuhong
Copy link
Contributor Author

yujuhong commented Apr 2, 2015

FYI, I am doing this so it'd be easier for me to work on #6321

@dchen1107 dchen1107 self-assigned this Apr 2, 2015
@dchen1107
Copy link
Member

This is totally moving along what we want for runtime abstraction. Will read it in detail.

@dchen1107
Copy link
Member

LGTM overall. @yfan-gu any objections?

@yifan-gu
Copy link
Contributor

yifan-gu commented Apr 2, 2015

LGTM! thanks @yujuhong !

dchen1107 added a commit that referenced this pull request Apr 2, 2015
RFC: Kubelet: a step towards to better encapsulation of docker functions
@dchen1107 dchen1107 merged commit 67c1678 into kubernetes:master Apr 2, 2015
@vmarmol
Copy link
Contributor

vmarmol commented Apr 3, 2015

Late to the party, but this looks great! Thanks @yujuhong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants