Skip to content
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

Allow user to set resources' source when creating a resource via the rest API #97

Closed
machi1990 opened this issue May 22, 2024 · 5 comments

Comments

@machi1990
Copy link

At the moment it is not possible to set the source when creating a resource via a restful API.
This makes watching the resources created via the rest API impossible.

@qiujian16 @clyang82 following discussions we've two options:

  1. setting the source as maestro by default
  2. allow user to specify the resource's source
@clyang82
Copy link
Contributor

Have a PR to set the source as maestro by default. @machi1990 are you fine with this option?

@machi1990
Copy link
Author

Thanks @clyang82

With this I'll be able to subscribe to status changes by specifying maestro as the source, correct?

@clyang82
Copy link
Contributor

Yes. You are right. You can get resource by using ocm get /api/maestro/v1/resources -p search="source = 'maestro'"

@clyang82
Copy link
Contributor

@machi1990 are you fine with the default source as maestro? if so, the PR was merged. Please give a try and then close this issue. Thanks.

@machi1990
Copy link
Author

Thanks for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants