working destination file name
This commit is contained in:
+1
-5
@@ -201,11 +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, concat([coalesce(each.value.namespace, each.value.connected_namespace, each.key),"/",coalesce(each.value.name, each.key)]))
|
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)]))
|
||||||
#
|
|
||||||
#
|
|
||||||
# maybe JOIN command
|
|
||||||
#
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+7
-1
@@ -78,7 +78,13 @@ variable "shunt_docker" {
|
|||||||
default = true
|
default = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "storage_path" {
|
||||||
|
type = map(string)
|
||||||
|
default = {
|
||||||
|
main_storage = "/data/kubernetes",
|
||||||
|
fast_access = "/ssd"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
locals {
|
locals {
|
||||||
|
|||||||
Reference in New Issue
Block a user