fix
This commit is contained in:
18
apps/taiga/taiga_Secret.tf
Normal file
18
apps/taiga/taiga_Secret.tf
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user