not working yet maybe we need the join function instead

This commit is contained in:
pi-ux-ce
2026-10-11 13:01:10 +01:00
parent 64fdd22df8
commit 85e853e9cb
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -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)]))
}
}
+2 -1
View File
@@ -106,7 +106,8 @@ kubernetes = {
pvc = {
echo-config = {
name = "echo-config"
host_path = "/tmp/data/kubernetes/echo/"
#host_path = "/tmp/data/kubernetes/echo/"
local_path = true
mount_path = "/app/configs"
}
}