Files
domain-incoming/apps/taiga/taiga_Secret.tf
2024-05-26 16:49:37 +02:00

19 lines
431 B
HCL

resource "random_password" "system" {
length = 32
special = false
}
resource "kubectl_manifest" "secret" {
yaml_body = <<-EOF
apiVersion: v1
kind: Secret
metadata:
name: "${var.instance}-${var.component}"
labels: ${jsonencode(local.common_labels)}
namespace: ${var.namespace}
type: Opaque
stringData:
TAIGA_SECRET_KEY: "${random_password.system.result}"
EOF
}