-
Notifications
You must be signed in to change notification settings - Fork 64
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
Registry operator host alias for registry viewer not working #1028
Comments
Might be resolved by devfile/registry-operator#33 |
As of writing this issue has not been resolved, will need further investigating into why |
I noticed this too. I think I had a patch with the fix when I was testing at one point and then it got removed when I committed the fix. Looking back at some of my local changes, I see there was a call to update the config map (after the status update) in the
|
This bug seems to have resurfaced again and requires further investigation, reopening.. |
Added this issue to the current sprint plan, this bug was fixed in sprint 233 but resurfaced at some point during the last sprint. Further investigation into this is require to ensure a fully working registry viewer component under a devfile registry deployment via the registry operator. |
Another bug to fix as part of epic #1007 |
It looks like the configmap is being updated but not the deployment |
Remaining: testing effort |
Which area this feature is related to?
/kind bug
Which area this bug is related to?
/area registry
What versions of software are you using?
Go project
Operating System and version: N/A
Go Pkg Version: 1.18
Bug Summary
Describe the bug:
For the registry operator, the host alias should be able to be set after the operator is deployed and during the deployment of the devfile registry using the
(*registryv1alpha1.DevfileRegistry).Status.URL
devfile/registry-operator/pkg/registry/configmap.go#L56 which is set once the operator picks up the server hostname. However, in the current statecr.Status.URL
is an empty string resulting in the registry viewer defaulting to the staging host alias of the community registry. A fix to operator will be needed to correct this.To Reproduce:
Deploy the registry operator in any deployment environment, this will result in all stack/sample links (e.g. starter project download and raw devfile links) in the registry viewer pointing to the registry server to point to the one deployed in staging for the community registry.
Expected behavior
Stack/sample links in the registry viewer should point to the registry server deployed with it.
cr.Status.URL
needs to be set to the host address of the deployment clusters ingress route.Any logs, error output, screenshots etc? Provide the devfile that sees this bug, if applicable
Additional context
Any workaround?
This can also work with the following source, but this would require the registry admin to set the hostname before deploying the operator:
"http://%s.%s"
: Additional source will be needed to set the right protocol based onspec.tls.enabled
.Suggestion on how to fix the bug
A proper fix would have the operator to set
cr.Status.URL
to the host address of the deployment cluster's ingress route.Target Date: May 30, 2023
The text was updated successfully, but these errors were encountered: