fix bool error
This commit is contained in:
+2
-2
@@ -199,9 +199,9 @@ resource "kubernetes_deployment_v1" "automatic" {
|
||||
}
|
||||
|
||||
dynamic "host_path" {
|
||||
for_each = volume.value.host_path != null ? [1] : []
|
||||
for_each = volume.value.host_path ? [1] : []
|
||||
content {
|
||||
path = coalesce(volume.value.host_folderpath, null)
|
||||
path = coalesce(volume.value.host_filepath, null)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ variable "kubernetes" {
|
||||
config_map = optional(bool, false)
|
||||
secret = optional(bool, false)
|
||||
host_path = optional(bool, false)
|
||||
host_folderpath = optional(string)
|
||||
host_filepath = optional(string)
|
||||
|
||||
storage_class_name = optional(string, "nfs-storage-intelligent")
|
||||
annotations_fileType = optional(string)
|
||||
|
||||
Reference in New Issue
Block a user