Files
coder/scaletest/terraform/action/tls.tf
T
Ethan 5145cd002d chore(scaletest): add tls to infrastructure (#19412)
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.
2025-08-25 12:25:09 +10:00

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
}
}