try to make the key optional as we might sometime use the full secret but for now it's not working

This commit is contained in:
2024-11-18 17:57:22 +00:00
parent c4c91ebc66
commit 44b85856e0
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -25,7 +25,7 @@ variable "kubernetes" {
value_from = optional(object({
secret_key_ref = object({
name = string
key = string
key = optional(string,null)
})
}))
# secret_name = optional(string)
@@ -207,6 +207,7 @@ resource "kubernetes_deployment_v1" "automatic" {
content {
name = env.value.value_from.secret_key_ref.name
key = env.value.value_from.secret_key_ref.key
optional = true
}
}
}