add legacy domain support
This commit is contained in:
@@ -56,6 +56,7 @@ variable "kubernetes" {
|
|||||||
service_type = optional(string, "ClusterIP")
|
service_type = optional(string, "ClusterIP")
|
||||||
service_name = optional(string)
|
service_name = optional(string)
|
||||||
domain_name = optional(string)
|
domain_name = optional(string)
|
||||||
|
legacy_domain = optional(bool, false)
|
||||||
exposed = optional(bool, true)
|
exposed = optional(bool, true)
|
||||||
liveness_tcp_socket = optional(number)
|
liveness_tcp_socket = optional(number)
|
||||||
liveness_http_get = optional(string)
|
liveness_http_get = optional(string)
|
||||||
|
|||||||
+1
-1
@@ -37,7 +37,7 @@ resource "kubernetes_ingress_v1" "automatic_ingress" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
resource "kubernetes_ingress_v1" "automatic_ingress_tryton" {
|
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 {
|
metadata {
|
||||||
name = "${each.key}-ingress"
|
name = "${each.key}-ingress"
|
||||||
namespace = coalesce(each.value.namespace, each.value.connected_namespace, each.key)
|
namespace = coalesce(each.value.namespace, each.value.connected_namespace, each.key)
|
||||||
|
|||||||
@@ -283,6 +283,7 @@ kubernetes = {
|
|||||||
image = "ghcr.io/bitwarden/nginx:2026.1.0"
|
image = "ghcr.io/bitwarden/nginx:2026.1.0"
|
||||||
service_port = [5000, 8080, 8443]
|
service_port = [5000, 8080, 8443]
|
||||||
exposed = true #no need to set as true but I did it for easy access
|
exposed = true #no need to set as true but I did it for easy access
|
||||||
|
legacy_domain = true
|
||||||
domain_name = "bitwarden"
|
domain_name = "bitwarden"
|
||||||
config_map_ref = ["uid.env"]
|
config_map_ref = ["uid.env"]
|
||||||
environment = {}
|
environment = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user