From 243cc25ee82568febce933bd6d5170a199dc96d5 Mon Sep 17 00:00:00 2001 From: RouxAntoine Date: Fri, 27 Sep 2024 23:10:03 +0200 Subject: [PATCH] fix: complete dns with additional ingress host --- exposition.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exposition.tf b/exposition.tf index 2e289af..a7e7bb6 100644 --- a/exposition.tf +++ b/exposition.tf @@ -61,10 +61,10 @@ resource "kubernetes_manifest" "certificate" { } spec = { secretName = local.certificate_secret_name - dnsNames = [ + dnsNames = concat([ local.service_hostname, format("*.%s", local.service_hostname) - ] + ], var.additional_ingress_host) issuerRef = { kind = "ClusterIssuer" name = "localdomain-issuer"