-
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
Add support for garbage collecting images. #3097
Conversation
@@ -203,6 +208,38 @@ func (kl *Kubelet) purgeOldest(ids []string) error { | |||
return nil | |||
} | |||
|
|||
func (kl *Kubelet) GarbageCollectLoop() { | |||
func() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This anonymous function seems superfluous?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indeed it does. copy and paste from the old function. Removed.
comment addressed. ptal. THanks! |
LGTM |
Add support for garbage collecting images.
I suspect this broke the liveness test? Not sure - will know more later. See #3108 In general, what's to prevent an image from getting cleaned up after it's pulled but before it's started? |
I don't think that my PR is the cause. Esp. because liveness.sh failed in The docs for dangling are here https://docs.docker.com/reference/commandline/cli/ (search for "dangling") They: "This will display untagged images, that are the leaves of the images tree So unless the tag isn't placed until a long while after the pull completes, I think I see the reason for the flake in liveness.sh, I think I pulled the Will add this as a note on the issue you filed. On Mon, Dec 22, 2014 at 6:21 PM, Daniel Smith notifications@github.com
|
Closes #157