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

Kubelet: add podManager for managing internal pod storage #5748

Merged
merged 1 commit into from
Mar 23, 2015

Conversation

yujuhong
Copy link
Contributor

This change moves pod array and mirrorPods into podManager, along with all
methods accessing these internal pod storage. This is the first step of the
refactoring, and no function change is involved.

@yujuhong
Copy link
Contributor Author

(This is to address #5615)

This PR does nothing other than moving things around. I want to get this out so that people working on kubelet (including myself) won't need to rebase so often.

Following PRs will attempt to accomplish the list below:

  • Restructure the internal mirrorPod storage completely. We need to store the actual mirror pods (api.Pod) for updating pod status with resourceVersion.
  • Re-draw the line between mirrorManager and podManager, and possibly consolidate the two.
  • More tests.

@yujuhong
Copy link
Contributor Author

/cc @vmarmol

@vmarmol vmarmol self-assigned this Mar 21, 2015
"github.com/golang/glog"
)

type podManager struct {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets make it an interface for easy mocking

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't sure if it's worth mocking pod manager at all, but I don't mind keeping the options open. Done.

@vmarmol
Copy link
Contributor

vmarmol commented Mar 23, 2015

Minor comments, looks good overall and removes over 100 lines in kubelet.go :)

@yujuhong
Copy link
Contributor Author

Uploaded a new patch (sorry I forgot to create a new commit). PTAL.

@yujuhong
Copy link
Contributor Author

Rebased.

@vmarmol
Copy link
Contributor

vmarmol commented Mar 23, 2015

LGTM, thanks @yujuhong!

@yujuhong
Copy link
Contributor Author

The head is broken so the tests are failing. Waiting for the fix to go in.

@vmarmol
Copy link
Contributor

vmarmol commented Mar 23, 2015

This is the second time in two days we run into this :(
On Mar 23, 2015 1:30 PM, "Yu-Ju Hong" notifications@github.com wrote:

The head is broken so the tests are failing. Waiting for the fix to go in.


Reply to this email directly or view it on GitHub
#5748 (comment)
.

This change moves pod array and mirrorPods into podManager, along with all
methods accessing these internal pod storages. This is the first step of the
refactoring, and no function change is involved.
@yujuhong
Copy link
Contributor Author

I rebased and uploaded again. travis already passed once.

@yujuhong
Copy link
Contributor Author

Ping! This is ready to merge :)

@vmarmol
Copy link
Contributor

vmarmol commented Mar 23, 2015

LGTM, merging thanks @yujuhong!

vmarmol added a commit that referenced this pull request Mar 23, 2015
Kubelet: add podManager for managing internal pod storage
@vmarmol vmarmol merged commit fe65aa5 into kubernetes:master Mar 23, 2015
@yujuhong yujuhong deleted the refactor branch March 26, 2015 00:21
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.

3 participants