mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
5145cd002d
Closes https://github.com/coder/internal/issues/850 This PR has the scaletest infrastructure retrieve and use TLS certificates from the persistent observability cluster. To support creating multiple instances of the infrastructure simultaneously, `var.name` can be set to `alpha`, `bravo` or `charlie`, which retrieves the corresponding certificates. Also: - Adds support for wildcard apps. - Retrieves the Cloudflare token from GCP secrets.
14 lines
334 B
Terraform
14 lines
334 B
Terraform
locals {
|
|
coder_certs_namespace = "coder-certs"
|
|
}
|
|
|
|
# These certificates are managed by flux and cert-manager.
|
|
data "kubernetes_secret" "coder_tls" {
|
|
for_each = local.deployments
|
|
provider = kubernetes.observability
|
|
metadata {
|
|
name = "coder-${var.name}-${each.key}-tls"
|
|
namespace = local.coder_certs_namespace
|
|
}
|
|
}
|