Skip to content

Fix port formatting in upstreamUrl

Alexandre Lossent requested to merge fix-port-format into master

With %g the proxy fails to start with this error:

[2022/04/29 13:46:37] [main.go:43] ERROR: failed to convert config: error converting upstreams: could not parse upstream "http://django-ex:%!g(int64=8080)/": parse "http://django-ex:%!g(int64=8080)/": invalid port ":%!g(int64=8080)" after host

Confirmed this behavior of %g on https://repeatit.io/. %v works even if input is a string or other unexpected type (e.g. when using helm install --set ...

Found this when deploying the chart with helm CLI on a project of mine in paas-stg. But I've not had the issue when using it as a subchart in the Nexus operator. No idea why...

Merge request reports