From c1e4feb34d92923468783ba5618cbe5515e5e154 Mon Sep 17 00:00:00 2001 From: kfox1111 Date: Thu, 11 Apr 2024 11:16:08 -0700 Subject: [PATCH] Fix ingress host with a dot (#323) Fixes: https://github.com/spiffe/helm-charts-hardened/issues/312 Signed-off-by: Kevin Fox --- charts/spire/templates/_spire-lib.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/spire/templates/_spire-lib.tpl b/charts/spire/templates/_spire-lib.tpl index 239efc1..db33cee 100644 --- a/charts/spire/templates/_spire-lib.tpl +++ b/charts/spire/templates/_spire-lib.tpl @@ -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 }}