I’m using the SonarSource helm chart to deploy into GCP. The ingress is shared between several applications, so each needs a prefix to it’s path, so the root for sonarqube is:
https://mydomain.com/sonarqube/
This I have set up and working fine, with the ingress path and the SONAR_WEB_CONTEXT
environment variable set to /sonarqube/
.
However, the script run by change-admin-password-hook
does not work, as it expects the api endpoints to be under http://service:port/api
when in this case it’s http://service:port/sonarqube/api
. I tried setting a rewrite rule on the ingress so the SONAR_WEB_CONTEXT
setting could be removed, but while this allowed the password hook to succeed the sonarqube web interface wasn’t reachable and just displayed a page with ‘Loading…’ on it. I tried a suggestion for a similar sounding issue, but that didn’t help.
I was able to get this to work by taking a copy of the helm chart and changing the url used in the hook. Is there some way to get this all to work together, or does the helm chart not cover this use case currently?