From 4620270006473bc1229fb73bb3e0de4338bdb334 Mon Sep 17 00:00:00 2001 From: pierre geeraert Date: Sun, 11 Oct 2026 23:20:57 +0100 Subject: [PATCH] working destination file name --- core/deployment.tf | 6 +----- core/module.tf | 8 +++++++- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/core/deployment.tf b/core/deployment.tf index 84e24f9..a3635d0 100644 --- a/core/deployment.tf +++ b/core/deployment.tf @@ -201,11 +201,7 @@ resource "kubernetes_deployment_v1" "automatic" { dynamic "host_path" { for_each = volume.value.host_path != null || volume.value.local_path ? [1] : [] content { - path = coalesce(volume.value.host_path, concat([coalesce(each.value.namespace, each.value.connected_namespace, each.key),"/",coalesce(each.value.name, each.key)])) - # - # - # maybe JOIN command - # + path = coalesce(volume.value.host_path, join("/", [var.storage_path.main_storage, coalesce(each.value.namespace, each.value.connected_namespace, each.key), coalesce(each.value.name, each.key)])) } } diff --git a/core/module.tf b/core/module.tf index f6ff003..a7d455d 100644 --- a/core/module.tf +++ b/core/module.tf @@ -78,7 +78,13 @@ variable "shunt_docker" { default = true } - +variable "storage_path" { + type = map(string) + default = { + main_storage = "/data/kubernetes", + fast_access = "/ssd" + } +} locals {