-
Notifications
You must be signed in to change notification settings - Fork 883
rkt: Implement FetchImages and RemoveImages API through API service. #3073
Conversation
238eb31
to
a92b19a
Compare
OK, also added implementation on the two APIs. |
Manually tested with the updated client example, this works now.
|
Image type = 1; | ||
|
||
// Resolvable names of the image, used for discovery, can be string, hash, URL, file path. | ||
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.
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'll go with using the distribution concept from #2953. So image type is not needed for fetching. I left a comment for you there some days ago. Can you take a look at it?
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.
@sgotti Sorry, will do, just buried by other works..
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.
@yifan-gu no problem. I'd just like to collect more opinions as possible from people involved on the various parts that it'll affect/help.
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.
@sgotti I am not sure about the Type: Name
vs Type: Location
thing. At this point I can't see why Distribution
is not enough to express the Name
vs Location
?
Unless we combine Distribution: Appc
with Distribution: ACIArchive
, and Distribution: OCI
with Distribution: OCIImageLayout
.
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.
Also commented on the PR, let's discuss here (sorry for multiple comments)
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.
So for this PR, I intend to make ImageType
+ name
able to locate and fetch the image into disk store.
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.
// RemoveImagesResponse defines the response for RemoveImages. | ||
message RemoveImagesResponse {} | ||
|
||
// PublicWriteOnlyAPI defines the read-only APIs that will be supported. |
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.
"defines the write-only APIs"
@sgotti OK, I updated the PR, using one string (field |
@yifan-gu you can just keep passing the BTW @euank @yifan-gu do you see a possible path for suggesting the use of distribution point concept also for k8s (to handle multiple distribution types). I can't recall the issue but I remember something about also handling Appc images. As explained in #2953 I think that more than "multiple image types" the real concept will be "multiple distribution types". Probably k8s doesn't need to use Direct distribution points but only indirect ones (Docker, Appc and in future, when defined, a possible OCI distribution) and the distribution string exposed to the user could be an user friendly string like done by rkt. So just one string without the need to declare any other field in the json descriptors. |
That will be great!
Not to be pedantic 😄 but, as explained in #2953 we are talking about distribution and not image types , so I won't use |
@sgotti Yes I got you, it was just an example :) |
@yifan-gu 👍 I was too much pedantic. sorry 😅 |
@yifan-gu bumping to next release, though I do remember we discussed OOB to drop this in favor of CRI?! Feel free to close if that is the case. |
closing for now, we can reopen if we finally decide to go down this path. |
Take the image service part from #2963 , which can be used in CRI depite pod level or container level interface.
cc @lucab @euank @tmrts @alban @iaguis @s-urbaniak
Ref kubernetes/kubernetes#30513