not working yet maybe we need the join function instead
This commit is contained in:
+1
-1
@@ -201,7 +201,7 @@ resource "kubernetes_deployment_v1" "automatic" {
|
|||||||
dynamic "host_path" {
|
dynamic "host_path" {
|
||||||
for_each = volume.value.host_path != null || volume.value.local_path ? [1] : []
|
for_each = volume.value.host_path != null || volume.value.local_path ? [1] : []
|
||||||
content {
|
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)]))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -105,8 +105,9 @@ kubernetes = {
|
|||||||
#command = ["-text=Hello authenticated world!"]
|
#command = ["-text=Hello authenticated world!"]
|
||||||
pvc = {
|
pvc = {
|
||||||
echo-config = {
|
echo-config = {
|
||||||
name = "echo-config"
|
name = "echo-config"
|
||||||
host_path = "/tmp/data/kubernetes/echo/"
|
#host_path = "/tmp/data/kubernetes/echo/"
|
||||||
|
local_path = true
|
||||||
mount_path = "/app/configs"
|
mount_path = "/app/configs"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user