-
Notifications
You must be signed in to change notification settings - Fork 38.9k
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
CRI: Rename 'RepoTags' to 'Names', and 'RepoDigests' to 'Digests'. #33971
Conversation
This makes the field name for generic.
Jenkins GCE Node e2e failed for commit e5bf458. Full PR test history. The magic incantation to run this job again is |
Jenkins unit/integration failed for commit e5bf458. Full PR test history. The magic incantation to run this job again is |
Jenkins GKE smoke e2e failed for commit e5bf458. Full PR test history. The magic incantation to run this job again is |
Jenkins GCE e2e failed for commit e5bf458. Full PR test history. The magic incantation to run this job again is |
Jenkins Kubemark GCE e2e failed for commit e5bf458. Full PR test history. The magic incantation to run this job again is |
Jenkins GCI GCE e2e failed for commit e5bf458. Full PR test history. The magic incantation to run this job again is |
Jenkins GCI GKE smoke e2e failed for commit e5bf458. Full PR test history. The magic incantation to run this job again is |
@@ -628,9 +628,9 @@ message Image { | |||
// ID of the image. | |||
optional string id = 1; | |||
// Other names by which this image is known. | |||
repeated string repo_tags = 2; | |||
repeated string names = 2; |
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.
Does name
include digests
?
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.
Are you asking what's the value of these two when someone specifies the image name as digest in the container spec when creating the container?
IIUC, for the return value of docker inspect
, the names are in the format of ubuntu:latest
, digests are ubuntu@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2
Both digests and names can be used to reference and pull the image. Digests also act as a content hash of the image.
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 asking because the definition could be ambiguous in some cases, and it'd be better to clarify this in the comment. RepoTags
clearly would not contain the digest, but I am not sure if it's still so straightforward withNames
. For example, the image Names
included in the node status may include both tags and digests.
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.
still think repo_tags is more clear, it clearly implies the format should be image_name:tag
.
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.
@feiskyer We can comment and require the Name
to have format like image_name:tag
as well. RepoTags
just sounds very docker specific. Same as RepoDigests
.
@yujuhong I don't see why the Names
in node status should contain digest at first place? Shouldn't we add a field about the digest / hash of the image?
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.
@feiskyer We can comment and require the Name to have format like image_name:tag as well. RepoTags just sounds very docker specific. Same as RepoDigests.
OK. It sounds docker specific just because only docker image is supported today. Does ACI also supports image:tag
and image@digest
?
// Digests by which this image is known. | ||
repeated string repo_digests = 3; | ||
repeated string digests = 3; |
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 think we should also amend the description of ImageSpec
to be either names
or digests
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.
And same with repo_digests, since image name is also expected in this field.
It seems we have a different view on what's the I don't see why we should think the |
@yifan-gu I am ok with the |
@yifan-gu PR needs rebase |
Closing this, now I agree |
This makes the field name for generic.
/cc @kubernetes/sig-node @kubernetes/sig-rktnetes
Will have a merge conflict with #33970
This change is![Reviewable](https://camo.githubusercontent.com/2d899f4291d07d3cd2fa4aaae1e3b243f164c23fce87d30a589ace0d496a444c/68747470733a2f2f72657669657761626c652e6b756265726e657465732e696f2f7265766965775f627574746f6e2e737667)