add legacy domain support

This commit is contained in:
pierre.geeraert
2026-10-13 14:49:48 +01:00
parent 96236c6baf
commit b4fdbccf98
3 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ resource "kubernetes_ingress_v1" "automatic_ingress" {
}
}
resource "kubernetes_ingress_v1" "automatic_ingress_tryton" {
for_each = { for key, value in var.kubernetes : key => value if value.service_port != null && value.enabled == true && value.docker != true && value.exposed == true }
for_each = { for key, value in var.kubernetes : key => value if value.service_port != null && value.enabled == true && value.docker != true && value.exposed == true && value.legacy_domain == true }
metadata {
name = "${each.key}-ingress"
namespace = coalesce(each.value.namespace, each.value.connected_namespace, each.key)