-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
easy add/modify registry list #18775
Comments
@ebullient does this help about the notion of registry and sequence? @aloubyansky can you confirm the semantics i described above matches your expections/what we have implemented at the moment? |
Yes, I thought we agreed on failing instead of silently falling back previously but also printing a message about how to install a platform using I'd be careful with |
Yes. The commands should help where it can with -P info. Clear is my suggestion so we have minimal set of commands to allow easily add to config but also able to reset to change order easily. Btw. We might also want to have a --global / --local or some mechanism to say where the registry should be created/updated. |
/cc @ebullient, @gsmet |
Ok. Intent is clear, but rammifications aren't.
etc. etc. If I have customized any of these, I don't want any command that just changes the search/priority order of registries to wipe out those customizations. I've started #18769 to experiment with making e.g.
|
why would we need a registry.precedence ? isn't LinkedHashmap used to back these? why not just reorder the list/map ? or are you just suggesting registry.precedence as optional alternative ? maybe a list is better:
|
A list is better, imo. Which is why I would keep the current impl for now. |
Ah yes. Current impl is a list already. +1 for that being the most meaningful. |
Regardless, the Map is backed by a LinkedHashMap (as you mentioned, Max), so in the simplest cases, you wouldn't need an additional field, you would use map insertion order (which is what I showed above). The question is what happens if you want to change the search order without losing config. What I'm confused about is how durable we think this registry configuration is (because some of the attributes I can see being things you don't want to mess around with). The existing mixed-use list (both the order AND the config) doesn't work if you want a command like One way to interpret add/remove is based on adding/removing configured registries:
or should we use Or is none of this necessary because the extra registry config that we're carting around is what is unnecessary.. :-P |
Up until this issue, we haven't really considered actually merging multiple configs. There is no notion of a config hierarchy currently. The first config file found is what we use, atm. Not saying it must stay this way but that's how it is today, just in case. The original idea behind the config was it was supposed to be super light and simple, i.e. a list of a few URLs/IDs. For a typical user we don't even expect the need for this config. So I am not sure we should be targeting more complex scenarios at this point. Structure wise, what we currently have is:
If eventually we want to be able to extract the registry config out of the list (to prevent completely loosing the custom registry configs executing
Given that the current config model is compatible with the above, I don't think we should be rushing in with this change. For now |
Partially delivered by #19619 |
Description
for now users will need to know where to put quarkus config to setup registries. we should make this dead easy.
Here are examples with suggestions for syntax to explain the various cases:
given a empty config:
now all operations (like
quarkus create
) should use registry.acme.org for resolving platforms/extensions and if cannot be found it should error and not try fallback to registry.quarkus.io as user explicilty asked to only use registry.acme.org.doing this next then:
then when using
quarkus create
or other operations it will takeregistry.acme.org
into concernfirst and then secondaryregstry.quarkus.io
will clear the list and now add registry.quarkus.io in front making it the dominant default.
this implies that if user only adds registry.acme.org it will not be able to see community provided extensions UNLESS reigstry.acme.org has a copy of such in its metadata.
Implementation ideas
No response
The text was updated successfully, but these errors were encountered: