Fix ingress host with a dot (#323)
Fixes: https://github.com/spiffe/helm-charts-hardened/issues/312 Signed-off-by: Kevin Fox <[email protected]>
This commit is contained in:
@@ -94,7 +94,7 @@
|
|||||||
*/}}
|
*/}}
|
||||||
{{ define "spire-lib.ingress-calculated-name" }}
|
{{ define "spire-lib.ingress-calculated-name" }}
|
||||||
{{- $host := .ingress.host }}
|
{{- $host := .ingress.host }}
|
||||||
{{- if not (contains $host ".") }}
|
{{- if not (contains "." $host) }}
|
||||||
{{- $host = printf "%s.%s" $host (include "spire-lib.trust-domain" .) }}
|
{{- $host = printf "%s.%s" $host (include "spire-lib.trust-domain" .) }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- $host }}
|
{{- $host }}
|
||||||
|
|||||||
Reference in New Issue
Block a user