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
Remove more docker references in kubelet #7586
Conversation
This change also renames TrimRuntimePrefixFromImage to TrimRuntimePrefix to better reflect that the usage is not limited to images (e.g. ID).
if err != nil { | ||
return nil, err | ||
} | ||
if len(dockerContainers) == 0 { | ||
return nil, ErrNoKubeletContainers |
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.
I am unsure why we need to report ErrNoKubeletContainers
, as opposed to ErrContainerNotFound. Do we really care about the difference? If that's the case, I would do more plumbing and change the behavior back to reporting ErrNoKubeletContainers
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.
I agree, ErrContainerNotFound
sounds good. This was added since there was a request for concrete errors in server.go
. The handling of both errors there is the same actually. If you're up for it we can probably remove ErrNoKubeletContainers
. Feel free to do here or in another PR.
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.
Done.
LGTM |
We no longer use it.
Add a new commit to remove |
LGTM, thanks @yujuhong! |
Shippable is green, merging. |
Remove more docker references in kubelet
This change also renames TrimRuntimePrefixFromImage to TrimRuntimePrefix to
better reflect that the usage is not limited to images (e.g. ID).