main.tf 684 B

1234567891011121314151617181920212223242526
  1. locals {
  2. credentials_path = "secrets/gcloud-service-account-key.json"
  3. }
  4. module "network" {
  5. source = "./modules/network"
  6. region = var.GCP_FED_REGION
  7. project_id = var.GCP_FED_PROJECT_ID
  8. }
  9. module "cluster" {
  10. source = "./modules/gke"
  11. project_id = var.GCP_FED_PROJECT_ID
  12. region = var.GCP_FED_REGION
  13. cluster_name = var.GCP_GKE_CLUSTER
  14. network = module.network.network_name
  15. subnetwork = module.network.subnetwork_name
  16. workload_identity_users = [
  17. # eso provider which is set up by e2e tests to
  18. # assert eso functionality.
  19. var.GCP_KSA_NAME,
  20. # e2e test runner which orchestrates the tests
  21. "external-secrets-e2e",
  22. ]
  23. }