Auto tornjak url (#89)
* Autogen jwtIssuer Unset a default for jwtIssuer and global.spire.jwtIssuer. When unset, generate it to the default of oidc-discovery.$trustDomain so in many cases the user doesn't need to set it at all. Signed-off-by: Kevin Fox <[email protected]> * Autogen tornjak's apiServerURL Unset the default tornjak apiServerURL. When unset, default to https://tornjak-backend.$trustDomain so in many cases users don't have to set it. Signed-off-by: Kevin Fox <[email protected]> * Do more autodetection Signed-off-by: Kevin Fox <[email protected]> * Apply suggestions from code review Co-authored-by: Faisal Memon <[email protected]> Signed-off-by: kfox1111 <[email protected]> * Fix docs Signed-off-by: Kevin Fox <[email protected]> --------- Signed-off-by: Kevin Fox <[email protected]> Signed-off-by: kfox1111 <[email protected]> Co-authored-by: Mariusz Sabath <[email protected]> Co-authored-by: Faisal Memon <[email protected]>
This commit is contained in:
co-authored by
Faisal Memon
Mariusz Sabath
parent
f2758a8b2b
commit
6c0a4fbb86
@@ -78,8 +78,9 @@ Create URL for accessing Tornjak APIs
|
||||
{{- define "tornjak-frontend.apiURL" -}}
|
||||
{{- if .Values.apiServerURL -}}
|
||||
{{- .Values.apiServerURL -}}
|
||||
{{- else if .Values.ingress.enabled }}
|
||||
{{- printf "https://tornjak-backend.%s" (include "spire-lib.trust-domain" .) }}
|
||||
{{- else }}
|
||||
{{- $feurl := print "http://localhost:" .Values.service.port }}
|
||||
{{- $feurl }}
|
||||
{{- print "http://localhost:" .Values.service.port }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user