-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Registries should be provisioned with their public URL by default. #15091
Comments
@amisevsk am I correct that this very issue is not for CRW 2.0 ? also description does not contain info about env vars |
not sure which team should handle this task, so putting devex for now |
@ibuziuk You're correct, this isn't a CRW issue directly. Mostly created for tracking, since it's a prereq for some other issues. |
This is currently important for offline and airgap deployments, as in that case plugin icons do not work in e.g. the plugin viewer panel of Theia. cc: @nickboldt |
Yep, important for CRW 2.1. Maybe we need a label for "airgap/offline" ? @l0rd WDYT? |
My personal +1 to alternative way =) Why I think it's quite logical:
So, on the one hand, we can simplify clients but make our deployment methods a bit difficult. It seems to be a quite common issue and I like the phrase I found but I'm afraid we are not able to implement it currently with Apache Server
|
The issue with relying on all consumers to resolve relative links correctly is that the yaml from the registries is passed around after retrieving it. Examples:
This ends up meaning that the alternatives are
For e.g. the plugins index, we don't actually use the relative links AFAIK. The index is used to display plugins to the user; if a user adds a plugin from there, the devfile gets the plugin's FQN added, which then results in the broker directly requesting it from the registry during brokering. |
In the context of CRW 2.1 installation on OpenShift 4.3 restricted environments, it seems that we should provision the devfile regsitry with its public URL by default, and not only when one of the |
Issues go stale after Mark the issue as fresh with If this issue is safe to close now please do so. Moderators: Add |
Is your enhancement related to a problem? Please describe.
There are various open issues around serving e.g. images from the registries themselves rather than using external links: #14844, similar for plugin registry (I can't find the issue at the moment)
To support this in the general case, it would be very convenient if all deployment methods for Che + registries provisioned an environment variable containing the registry's public route or something similar. This is currently done by default when deploying Che in offline mode for the devfile registry to support serving project zips, but would be useful in allowing the registries to serve content in general.
If this functionality was included, it would be very easy to e.g. cache all plugin and devfile icons during build and serve them from the registry by default. Additionally, adding this functionality for the plugin registry is required for supporting plugin icons in offline mode.
Describe alternatives you've considered
The alternative would be to ensure that all consumers of data from the registry can handle relative links (e.g. relative links for devfile icons point at the dashboard, not the devfile registry).
Additional context
This may be possible using the k8s downward API, but I haven't investigated enough.
The text was updated successfully, but these errors were encountered: