another try for the hostpath
This commit is contained in:
+1
-9
@@ -191,13 +191,6 @@ resource "kubernetes_deployment_v1" "automatic" {
|
||||
content {
|
||||
name = "${volume.value.name}-pvc"
|
||||
|
||||
dynamic "persistent_volume_claim" {
|
||||
for_each = volume.value.pvc ? [1] : []
|
||||
content {
|
||||
claim_name = "${volume.value.name}-pvc"
|
||||
}
|
||||
}
|
||||
|
||||
dynamic "config_map" {
|
||||
for_each = volume.value.config_map ? [1] : []
|
||||
content {
|
||||
@@ -208,7 +201,7 @@ resource "kubernetes_deployment_v1" "automatic" {
|
||||
dynamic "host_path" {
|
||||
for_each = volume.value.host_path != null ? [1] : []
|
||||
content {
|
||||
path = volume.value.host_path
|
||||
path = coalesce(volume.value.host_folderpath, null)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -235,7 +228,6 @@ resource "kubernetes_deployment_v1" "automatic" {
|
||||
}
|
||||
}
|
||||
}
|
||||
depends_on = [kubernetes_persistent_volume_claim_v1.automatic-pvc]
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user