fix bool error

This commit is contained in:
pierre geeraert
2026-10-11 12:49:45 +01:00
parent 79dbe3721e
commit f8c89da4a1
3 changed files with 32 additions and 37 deletions
+2 -2
View File
@@ -199,9 +199,9 @@ resource "kubernetes_deployment_v1" "automatic" {
} }
dynamic "host_path" { dynamic "host_path" {
for_each = volume.value.host_path ? [1] : [] for_each = volume.value.host_path != null || volume.value.local_path ? [1] : []
content { content {
path = coalesce(volume.value.host_filepath, null) path = coalesce(volume.value.host_path, null)
} }
} }
+2 -4
View File
@@ -23,12 +23,10 @@ variable "kubernetes" {
image = string image = string
pvc = optional(map(object({ pvc = optional(map(object({
name = string name = string
config_map = optional(bool, false) config_map = optional(bool, false)
secret = optional(bool, false) secret = optional(bool, false)
host_path = optional(bool, false) local_path = optional(bool, false)
host_filepath = optional(string) host_path = optional(string)
storage_class_name = optional(string, "nfs-storage-intelligent") storage_class_name = optional(string, "nfs-storage-intelligent")
annotations_fileType = optional(string) annotations_fileType = optional(string)
mount_path = string mount_path = string
+25 -28
View File
@@ -135,20 +135,17 @@ kubernetes = {
pvc = { pvc = {
bitwarden-ca-certificates = { bitwarden-ca-certificates = {
pvc = true
pvc_size = "2Mi" pvc_size = "2Mi"
mount_path = "/etc/bitwarden/ca-certificates" mount_path = "/etc/bitwarden/ca-certificates"
name = "bitwarden-ca-certificates" name = "bitwarden-ca-certificates"
} }
bitwarden-core = { bitwarden-core = {
pvc = true
pvc_size = "2Mi" pvc_size = "2Mi"
mount_path = "/etc/bitwarden/core" mount_path = "/etc/bitwarden/core"
name = "bitwarden-core" name = "bitwarden-core"
} }
bitwarden-logs = { bitwarden-logs = {
pvc = true
pvc_size = "2Mi" pvc_size = "2Mi"
mount_path = "/etc/bitwarden/logs" mount_path = "/etc/bitwarden/logs"
name = "bitwarden-logs" name = "bitwarden-logs"
@@ -172,20 +169,20 @@ kubernetes = {
pvc = { pvc = {
bitwarden-ca-certificates = { bitwarden-ca-certificates = {
pvc = true
pvc_size = "2Mi" pvc_size = "2Mi"
mount_path = "/etc/bitwarden/ca-certificates" mount_path = "/etc/bitwarden/ca-certificates"
name = "bitwarden-ca-certificates" name = "bitwarden-ca-certificates"
} }
bitwarden-core = { bitwarden-core = {
pvc = true
pvc_size = "2Mi" pvc_size = "2Mi"
mount_path = "/etc/bitwarden/core" mount_path = "/etc/bitwarden/core"
name = "bitwarden-core" name = "bitwarden-core"
} }
bitwarden-logs = { bitwarden-logs = {
pvc = true
pvc_size = "2Mi" pvc_size = "2Mi"
mount_path = "/etc/bitwarden/logs" mount_path = "/etc/bitwarden/logs"
name = "bitwarden-logs" name = "bitwarden-logs"
@@ -208,7 +205,7 @@ kubernetes = {
pvc = { pvc = {
bitwarden-core = { bitwarden-core = {
pvc = true
pvc_size = "2Mi" pvc_size = "2Mi"
mount_path = "/etc/bitwarden/core/attachments" mount_path = "/etc/bitwarden/core/attachments"
name = "bitwarden-core" name = "bitwarden-core"
@@ -229,13 +226,13 @@ kubernetes = {
pvc = { pvc = {
bitwarden-ca-certificates = { bitwarden-ca-certificates = {
pvc = true
pvc_size = "2Mi" pvc_size = "2Mi"
mount_path = "/etc/bitwarden/ca-certificates" mount_path = "/etc/bitwarden/ca-certificates"
name = "bitwarden-ca-certificates" name = "bitwarden-ca-certificates"
} }
bitwarden-logs = { bitwarden-logs = {
pvc = true
pvc_size = "2Mi" pvc_size = "2Mi"
mount_path = "/etc/bitwarden/logs" mount_path = "/etc/bitwarden/logs"
name = "bitwarden-logs" name = "bitwarden-logs"
@@ -257,13 +254,13 @@ kubernetes = {
pvc = { pvc = {
bitwarden-ca-certificates = { bitwarden-ca-certificates = {
pvc = true
pvc_size = "2Mi" pvc_size = "2Mi"
mount_path = "/etc/bitwarden/ca-certificates" mount_path = "/etc/bitwarden/ca-certificates"
name = "bitwarden-ca-certificates" name = "bitwarden-ca-certificates"
} }
bitwarden-logs = { bitwarden-logs = {
pvc = true
pvc_size = "2Mi" pvc_size = "2Mi"
mount_path = "/etc/bitwarden/logs" mount_path = "/etc/bitwarden/logs"
name = "bitwarden-logs" name = "bitwarden-logs"
@@ -284,26 +281,26 @@ kubernetes = {
pvc = { pvc = {
bitwarden-identity = { bitwarden-identity = {
pvc = true
pvc_size = "2Mi" pvc_size = "2Mi"
mount_path = "/etc/bitwarden/identity" mount_path = "/etc/bitwarden/identity"
name = "bitwarden-identity" name = "bitwarden-identity"
} }
bitwarden-ca-certificates = { bitwarden-ca-certificates = {
pvc = true
pvc_size = "2Mi" pvc_size = "2Mi"
mount_path = "/etc/bitwarden/ca-certificates" mount_path = "/etc/bitwarden/ca-certificates"
name = "bitwarden-ca-certificates" name = "bitwarden-ca-certificates"
} }
bitwarden-core = { bitwarden-core = {
pvc = true
pvc_size = "2Mi" pvc_size = "2Mi"
mount_path = "/etc/bitwarden/core" mount_path = "/etc/bitwarden/core"
name = "bitwarden-core" name = "bitwarden-core"
} }
bitwarden-logs = { bitwarden-logs = {
pvc = true
pvc_size = "2Mi" pvc_size = "2Mi"
mount_path = "/etc/bitwarden/logs" mount_path = "/etc/bitwarden/logs"
name = "bitwarden-logs" name = "bitwarden-logs"
@@ -330,14 +327,14 @@ kubernetes = {
pvc = { pvc = {
bitwarden-mssql = { bitwarden-mssql = {
pvc = true
pvc_size = "2Mi" pvc_size = "2Mi"
mount_path = "/var/opt/mssql/data" mount_path = "/var/opt/mssql/data"
name = "bitwarden-mssql" name = "bitwarden-mssql"
sub_path = "data" sub_path = "data"
} }
bitwarden-logs = { bitwarden-logs = {
pvc = true
pvc_size = "2Mi" pvc_size = "2Mi"
mount_path = "/etc/bitwarden/logs" mount_path = "/etc/bitwarden/logs"
name = "bitwarden-logs" name = "bitwarden-logs"
@@ -357,26 +354,26 @@ kubernetes = {
pvc = { pvc = {
bitwarden-nginx = { bitwarden-nginx = {
pvc = true
pvc_size = "2Mi" pvc_size = "2Mi"
mount_path = "/etc/bitwarden/nginx" mount_path = "/etc/bitwarden/nginx"
name = "bitwarden-nginx" name = "bitwarden-nginx"
} }
bitwarden-letsencrypt = { bitwarden-letsencrypt = {
pvc = true
pvc_size = "2Mi" pvc_size = "2Mi"
mount_path = "/etc/letsencrypt" mount_path = "/etc/letsencrypt"
name = "bitwarden-letsencrypt" name = "bitwarden-letsencrypt"
} }
bitwarden-ssl = { bitwarden-ssl = {
pvc = true
pvc_size = "2Mi" pvc_size = "2Mi"
mount_path = "/etc/ssl" mount_path = "/etc/ssl"
name = "bitwarden-ssl" name = "bitwarden-ssl"
} }
bitwarden-logs = { bitwarden-logs = {
pvc = true
pvc_size = "2Mi" pvc_size = "2Mi"
mount_path = "/var/log/nginx" mount_path = "/var/log/nginx"
name = "bitwarden-logs" name = "bitwarden-logs"
@@ -396,13 +393,13 @@ kubernetes = {
pvc = { pvc = {
bitwarden-ca-certificates = { bitwarden-ca-certificates = {
pvc = true
pvc_size = "2Mi" pvc_size = "2Mi"
mount_path = "/etc/bitwarden/ca-certificates" mount_path = "/etc/bitwarden/ca-certificates"
name = "bitwarden-ca-certificates" name = "bitwarden-ca-certificates"
} }
bitwarden-logs = { bitwarden-logs = {
pvc = true
pvc_size = "2Mi" pvc_size = "2Mi"
mount_path = "/etc/bitwarden/logs" mount_path = "/etc/bitwarden/logs"
name = "bitwarden-logs" name = "bitwarden-logs"
@@ -422,25 +419,25 @@ kubernetes = {
pvc = { pvc = {
bitwarden-identity = { bitwarden-identity = {
pvc = true
pvc_size = "2Mi" pvc_size = "2Mi"
mount_path = "/etc/bitwarden/identity" mount_path = "/etc/bitwarden/identity"
name = "bitwarden-identity" name = "bitwarden-identity"
} }
bitwarden-core = { bitwarden-core = {
pvc = true
pvc_size = "2Mi" pvc_size = "2Mi"
mount_path = "/etc/bitwarden/core" mount_path = "/etc/bitwarden/core"
name = "bitwarden-core" name = "bitwarden-core"
} }
bitwarden-ca-certificates = { bitwarden-ca-certificates = {
pvc = true
pvc_size = "2Mi" pvc_size = "2Mi"
mount_path = "/etc/bitwarden/ca-certificates" mount_path = "/etc/bitwarden/ca-certificates"
name = "bitwarden-ca-certificates" name = "bitwarden-ca-certificates"
} }
bitwarden-logs = { bitwarden-logs = {
pvc = true
pvc_size = "2Mi" pvc_size = "2Mi"
mount_path = "/etc/bitwarden/logs" mount_path = "/etc/bitwarden/logs"
name = "bitwarden-logs" name = "bitwarden-logs"
@@ -460,7 +457,7 @@ kubernetes = {
pvc = { pvc = {
bitwarden-web = { bitwarden-web = {
pvc = true
pvc_size = "2Mi" pvc_size = "2Mi"
mount_path = "/etc/bitwarden/web" mount_path = "/etc/bitwarden/web"
name = "bitwarden-web" name = "bitwarden-web"