terraform-contour-mirror/modules/k8s-secret/outputs.tf

20 lines
546 B
HCL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

output "secrets" {
description = "Информация о созданных секретах"
value = merge(
{
for name, secret in kubernetes_secret.with_ignore : name => {
id = secret.id
name = secret.metadata[0].name
namespace = secret.metadata[0].namespace
}
},
{
for name, secret in kubernetes_secret.without_ignore : name => {
id = secret.id
name = secret.metadata[0].name
namespace = secret.metadata[0].namespace
}
}
)
}