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 image-related methods to DockerManager #7578
Conversation
3a9d45d
to
76fd16c
Compare
Rebased. |
LGTM |
for _, i := range actualImages { | ||
actual.Insert(i.ID) | ||
} | ||
if !reflect.DeepEqual(expected.List(), actual.List()) { |
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.
Is this order deterministic? Since it's converting from a map I don't think it is.
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.
It is. util.StringSet sorts before returns.
https://github.com/GoogleCloudPlatform/kubernetes/blob/master/pkg/util/set.go#L122
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 will add a comment for clarity.
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.
Ah, thanks for the pointer. Sounds good.
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.
It's alright, it's a failure to read the specification on my part.
LGTM, minor nits. |
This change is part of the efforts to make DockerManager implement the Runtime interface. The change also modifies the interface slightly to work with existing code, and aggregates the type converting functions to convert.go.
76fd16c
to
83c599e
Compare
Addressed the comments in the new patch. Thanks! |
LGTM, thanks @yujuhong! |
Shippable is green, merging. |
Add image-related methods to DockerManager
This change is part of the efforts to make DockerManager implement the Runtime
interface.
The change also modifies the interface slightly to work with existing
code, and aggregates the type converting functions to convert.go.