Open jdvgh opened 6 months ago
I think we need to add this as an environment variable, so that dexServiceURL
is not hardcoded, and pass this value also to the dex helm parameter (dex.fullnameOverride
), so that the 2 helm charts get the same value.
When creating a kuberpult deployment, the dex-service-name is based upon the release name:
charts/kuberpult/.helmignore
We will get the dex service:
(refer to : https://github.com/dexidp/helm-charts/blob/master/charts/dex/templates/service.yaml#L4 and https://github.com/dexidp/helm-charts/blob/master/charts/dex/templates/_helpers.tpl#L21)
However, the name kuberpult uses is hardcoded: https://github.com/freiheit-com/kuberpult/blob/c70960f98c81ee1ad3bc708f81b9fbf3edaa04a8/pkg/auth/dex.go#L62
So if the release name differs from
kuberpult
or we change the dex name in another way, we will get an issue e.g.:So either the name of dex should be set in the values.yaml (e.g.
dex.fullnameOverride = kuberpult-dex
), or the line index.go
should be adapted.e.g. running:
will return the service: