another try for the hostpath

This commit is contained in:
pierre geeraert
2026-10-11 12:42:29 +01:00
parent 6d9b7d792f
commit a0cf0cebe4
4 changed files with 11 additions and 136 deletions
+1 -9
View File
@@ -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]
}