From b4fdbccf98b64f831613010052280a42d3673271 Mon Sep 17 00:00:00 2001 From: "pierre.geeraert" Date: Tue, 13 Oct 2026 14:49:48 +0100 Subject: [PATCH] add legacy domain support --- core/module.tf | 1 + core/services.tf | 2 +- core/variables.auto.tfvars | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/module.tf b/core/module.tf index c11b510..da27eb6 100644 --- a/core/module.tf +++ b/core/module.tf @@ -56,6 +56,7 @@ variable "kubernetes" { service_type = optional(string, "ClusterIP") service_name = optional(string) domain_name = optional(string) + legacy_domain = optional(bool, false) exposed = optional(bool, true) liveness_tcp_socket = optional(number) liveness_http_get = optional(string) diff --git a/core/services.tf b/core/services.tf index fc63908..8b4b1bb 100644 --- a/core/services.tf +++ b/core/services.tf @@ -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) diff --git a/core/variables.auto.tfvars b/core/variables.auto.tfvars index a2264f7..31b5b81 100644 --- a/core/variables.auto.tfvars +++ b/core/variables.auto.tfvars @@ -283,6 +283,7 @@ kubernetes = { image = "ghcr.io/bitwarden/nginx:2026.1.0" service_port = [5000, 8080, 8443] exposed = true #no need to set as true but I did it for easy access + legacy_domain = true domain_name = "bitwarden" config_map_ref = ["uid.env"] environment = {}