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

Reduce resolver matching conflicts on 'create' and 'run' #212

Closed
moul opened this issue Oct 16, 2015 · 1 comment
Closed

Reduce resolver matching conflicts on 'create' and 'run' #212

moul opened this issue Oct 16, 2015 · 1 comment

Comments

@moul
Copy link
Contributor

moul commented Oct 16, 2015

Actually:

  • scw run ubuntu-trusty will looks for public images and user images, it's kind of typical to create a snapshot of a public ubuntu and name it "ubuntu trusty with my stuff"

I think we should try to get the same behavior for everyone using scw run ubuntu-trusty -> use the public image.
Then we can enforce user to specify a prefix for user images, i.e:

  • scw run ubuntu-trusty will only looks for public images with a name matching ubuntu-trusty
  • scw run user/ubuntu-trusty will only looks for user images

I restricted the perimeter of this optimization to create and run, because some calls as inspect should see all the items matching a name I think, i.e:


  • scw inspect ubuntu-trusty will looks for public images matching ubuntu-trusty, user images matching ubuntu-trusty but also public bootscripts, user snapshots, user volumes and most important: user servers

In summary:

  • Add a user/ prefix which will restrict everywhere the resolver to user contents (not only images)
  • No prefix means no restriction
  • Except for create and run: no prefix means only public images first

@aimxhaisse @QuentinPerez what do you think ?

@QuentinBrosse
Copy link
Contributor

This issue has been automatically closed because it has not had recent activity. Feel free to reopen it if you think that it is necessary.
Note that we are working on a totally new version of the CLI to support all the new coming products.
Thank you for your contributions and stay tuned! 😉

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

No branches or pull requests

2 participants