diff --git a/modules/redis/main.tf b/modules/redis/main.tf index a4595ed..56fdae2 100644 --- a/modules/redis/main.tf +++ b/modules/redis/main.tf @@ -96,18 +96,13 @@ 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"])])) } } - - } } } }