-
Notifications
You must be signed in to change notification settings - Fork 274
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 API for Image Files providers #7802
Conversation
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 still unclear to me:
- if the namespace is correct (like shouldn't be part of the
provider
namespace) - the metadata argument as we already provide the object (like why it's not part of the object given)
- if the pattern is
register
where we provide everything orcreate
(returning an object with helper methods)
I wanted to keep the same pattern as for the image checker API |
@feloy but why it can't go to the |
I mean that if we move the function to the I would prefer to be consistent between both providers. Or do you think we should, eventually, move the function from the |
probably imageChecker should be moved as well |
we already have 2 patterns for contributions, as they're bringing different kind of value.
if we have common 'helper functions' in all the implementations, probably it's more following the 'create' pattern
|
OK, I'll have a try using the If I understand correctly, the If so, would it be preferable to have an |
I changed the pattern, for the API to provide helper functions to the extension, to help populate the response to |
Signed-off-by: Philippe Martin <[email protected]>
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.
thanks for the big changes @feloy
I think now it's more straightforward
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.
This looks amazing and I have no issues either with the code after going through it, amazing work!
LGTM.
Signed-off-by: Philippe Martin [email protected]
What does this PR do?
Adds an API for extensions to registrer as an Image Files provider.
Inspiration from spec and Node implementation of Image builder.
What issues does this PR fix or reference?
Part of #7801