This commit is contained in:
2024-05-25 14:21:14 +02:00
parent 57954c4192
commit f2dd6e76b9
13 changed files with 2098 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
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.sonar_all_labels)}
namespace: ${var.namespace}
type: Opaque
stringData:
TAIGA_SECRET_KEY: "${random_password.system.result}"
EOF
}