From 85e853e9cb4b9a758e8b286bf8f49c2c93fdb86f Mon Sep 17 00:00:00 2001 From: pi-ux-ce Date: Sun, 11 Oct 2026 13:01:10 +0100 Subject: [PATCH] not working yet maybe we need the join function instead --- core/deployment.tf | 2 +- core/variables.auto.tfvars | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/core/deployment.tf b/core/deployment.tf index f4f8e2f..b151a73 100644 --- a/core/deployment.tf +++ b/core/deployment.tf @@ -201,7 +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, null) + path = coalesce(volume.value.host_path, concat([coalesce(each.value.namespace, each.value.connected_namespace, each.key),"/",coalesce(each.value.name, each.key)])) } } diff --git a/core/variables.auto.tfvars b/core/variables.auto.tfvars index cbc4566..f65ce4d 100644 --- a/core/variables.auto.tfvars +++ b/core/variables.auto.tfvars @@ -105,8 +105,9 @@ kubernetes = { #command = ["-text=Hello authenticated world!"] pvc = { echo-config = { - name = "echo-config" - host_path = "/tmp/data/kubernetes/echo/" + name = "echo-config" + #host_path = "/tmp/data/kubernetes/echo/" + local_path = true mount_path = "/app/configs" } }