-
Notifications
You must be signed in to change notification settings - Fork 40k
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: refactor kubelet.Runtimehooks to container.ImagePuller. #12489
Conversation
Can one of the admins verify that this patch is reasonable to test? (reply "ok to test", or if you trust the user, reply "add to whitelist") If this message is too spammy, please complain to ixdy. |
@k8s-bot ok to test |
GCE e2e build/test passed for commit 6cc54ba9893254dacfdaaa4799c154dc92ba9c1e. |
6cc54ba
to
b7bc393
Compare
GCE e2e build/test passed for commit b7bc39328e52b21d2367f6a14c996877045516c4. |
b7bc393
to
bf9217a
Compare
GCE e2e build/test passed for commit bf9217a4e566c95f9fa7598a6af8b07d13081ed6. |
/cc @pmorie |
@dchen1107, if you are busy, feel free to re-assign to me :) |
LGTM. Please rebase your pr to get this merged. |
bf9217a
to
dbf779b
Compare
@dchen1107 Rebased :) |
GCE e2e build/test passed for commit dbf779bb26e94b8a23701e91173392ffbd923d62. |
40f13a6
to
58c748f
Compare
GCE e2e build/test passed for commit 40f13a672ee7d30626d878ce3b083206650679d6. |
GCE e2e build/test passed for commit 58c748fdbf1397d19416e9698ad8944563ec0a93. |
58c748f
to
e22dbc9
Compare
e22dbc9
to
d70a30c
Compare
GCE e2e build/test passed for commit e22dbc9db5bd765a3f1bb71b0d52e52056cd3572. |
GCE e2e build/test passed for commit d70a30c. |
kubelet: refactor kubelet.Runtimehooks to container.ImagePuller.
I was OOO last week, but this LGTM. |
This PR wraps the runtime hook functions (
ShouldPullImage
,ReportImagePulling
,ReportImagePulled
) andDockerManger.pullImage
toImagePuller.PullImage
.This new function can be called by other container runtimes to pull image and report events, as long as the runtime has implemented
IsImagePresent
andPullImage
in the runtime interface./cc @dchen1107 @vmarmol @yujuhong