clsing brackets

This commit is contained in:
pierre geeraert
2026-10-14 00:44:21 +01:00
parent b48c17fc8c
commit 5c19f17a65
+6 -5
View File
@@ -28,7 +28,7 @@ variable "storage_path" {
}
resource "kubernetes_deployment_v1" "redis-automatic" {
for_each = { for key, value in var.kubernetes_input : key => value if value.redis != null && value.enabled == true }
for_each = {for key, value in var.kubernetes_input : key => value if value.redis != null && value.enabled == true}
metadata {
@@ -76,9 +76,6 @@ resource "kubernetes_deployment_v1" "redis-automatic" {
}
dynamic "env" {
for_each = each.value.environment != null ? each.value.environment : {}
content {
@@ -103,11 +100,15 @@ resource "kubernetes_deployment_v1" "redis-automatic" {
volume {
name = "${each.key}-redis-volume"
host_path {
path = try(each.value.redis.host_path, join("/", [var.storage_path.main_storage, coalesce(each.value.namespace, each.value.connected_namespace, each.key), join("-", [each.key, "redis"])]))
path = try(each.value.redis.host_path, join("/", [
var.storage_path.main_storage, coalesce(each.value.namespace, each.value.connected_namespace, each.key),
join("-", [each.key, "redis"])
]))
}
}
}
}
}
}
}