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:
kfox1111
2024-04-11 11:16:08 -07:00
committed by GitHub
parent 5b1bf432f4
commit c1e4feb34d
+1 -1
View File
@@ -94,7 +94,7 @@
*/}}
{{ define "spire-lib.ingress-calculated-name" }}
{{- $host := .ingress.host }}
{{- if not (contains $host ".") }}
{{- if not (contains "." $host) }}
{{- $host = printf "%s.%s" $host (include "spire-lib.trust-domain" .) }}
{{- end }}
{{- $host }}