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:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user