Closed machi1990 closed 1 month ago
Thanks @machi1990 for reporting this. The current design is
Single
resource onlyBundle
resource.In order to support your case, it may introduce the trouble that one resource can have multiple operators (restful and gRPC).
It is also related with setting manifestbundle
and manifest
as supported codecs in maestro agent by default.
In order to support your case, it may introduce the trouble that one resource can have multiple operators (restful and gRPC).
I fail to see an issue with this; can you elaborate what's the issue with a resource being operated by multiple operators?
It is also related with setting
manifestbundle
andmanifest
as supported codecs in maestro agent by default.
I think exposing the codecs config as done in https://github.com/openshift-online/maestro/pull/94 is fine
Thoughts?
@clyang82 apologies, I missed the ping in this card.
the green boxes what we have today.
I've tested all the green boxes succesful; except for the WATCH (subscribe API) which I've opened a discussion thread on.
the gray boxes we do not have today.
Correct, the /api/maestro/v1/manifests
is what is missing today. How do you envision its design - the API schema, and its list capabilities?
Correct, the /api/maestro/v1/manifests is what is missing today. How do you envision its design - the API schema, and its list capabilities?
To expand on this, will there also be a /api/maestro/v1/manifests/<id>
?
I think so, we should have both list and get.
link this issue together https://github.com/openshift-online/maestro/issues/103
I am happy for this issue to be closed in favor of #103
Currently, it is not possible to retrieve resources whose type is
Bundle
via the rest API. It's a perfect use case for someone to create a resource with type Bundle via the grpc client on one component and on the other component using the rest API wanting to list all resources (Single and Bundle resources) or even filtering by bundle resource e.gAt the moment, the above query returns an empty list all the time even if there are resources with type Bundle in the database.
The reason is that the query performed by the backend is
notice the
(resources.type = 'Bundle' AND resources.type = 'Single')
@qiujian16 @clyang82