-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Show tag image for workload in list-images #2024
Conversation
The image tagged |
@squaremo can you give an example of where this would not be the case? As this is exactly what I observed from both Docker and Kubernetes.
|
That's what happens if there's no image E.g., if you have a manifest with just |
And the list will not display the image you are currently running because we do not have it in our cache (which does not seem misleading to me), I am actually running my Flux pod this way. How would you like it to be presented in case the cluster is running an image we can not find in our cache? Because given your comments, I think that's the actual issue that needs to be solved. |
But it would line it up with a |
But this is no different from how it works at the moment? If you overwrite the tag in your local Docker daemon (say |
True, that's a problem now, we assume tag equality means image equality, and that's not always right.* This would add to the problem by assuming an extra thing, that a missing tag is the same as *It's difficult to go on anything other than tag equality, because we don't in general have the image digests for what's actually running, and even if we did, they could be different per pod.
That's part of the issue -- the image with no tag will never be in the image database. I honestly don't know what is a good way to illustrate either of these situations. Maybe just a question mark instead of an arrow. |
26f2f1a
to
db21161
Compare
db21161
to
ef57d70
Compare
ef57d70
to
b6316f4
Compare
OK, being literal about the issue as reported, what I suggest is this: if the current image doesn't have a tag, then output a row with a question mark and "point" at that. E.g.,
|
If at some point we gather the digest given in the manifest, then we can indicate when that is a match with an image in some other way, too. |
b6316f4
to
651ba87
Compare
@squaremo it now looks like this
|
651ba87
to
e0a7271
Compare
OK -- as before, |
That's what's in the code: e0a7271#diff-1400f8d8bf6b4557b8199aaa5f25d330R142 The deployment from my example is actually running from the |
Ahhhh I see! But we exclude the |
If someone is now running a tag that we do not have in our cache, we still display the tag and a question mark (because we have no metadata for that tag), in case the current tag is empty, we replace it with |
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.
Good tying up of a loose end -- thanks Hidde 🍍
If we are unable to match the image of the workload to a tag from our cache, we still list the name of the tag and a question mark where we would normally list the created date, to indicate we have no record of it in our cache.
e0a7271
to
fffde26
Compare
Fixes #847
Before this change the comparison to list an image as being used by the workload was purely based upon the tag name. We now also check if the digest of the image matches the one in our image cache.
In addition, if we are unable to match the image of the workload to a tag and digest in our image cache, we still list the name of the tag (as we have no other data available), but with a question mark added as a prefix (
?->
).