Looks like the order of arguments is wrong for the string comparison in template function spire-lib.ingress-calculated-name.
The test fails to find a '.' in the hostname and trust-domain is added to a fqdn.
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 }}
Hi,
Looks like the order of arguments is wrong for the string comparison in template function spire-lib.ingress-calculated-name. The test fails to find a '.' in the hostname and trust-domain is added to a fqdn.