Refactor service agent management (#2423)
* Service agents script * Service agents update * WIP * Update script and terraform * Fix tests * Fix linter * Update docs * Bring back pf example inventory * Fix tests * Fix more tests * Fix tests * Use dataclasses for build_service_agents.py * Remove unneeded field() from build_service_agents * Re-enable CMEK depends_on in project outputs * Update tools/requirements.txt * Enable storage in GCS example projects * Fix tests * Add CMEK Service Agents dependencies for services * Fix typos and data platform cmek * More typos
This commit is contained in:
@@ -106,7 +106,7 @@ module "hub" {
|
||||
}
|
||||
}
|
||||
|
||||
# tftest modules=4 resources=18 inventory=full.yaml
|
||||
# tftest modules=4 resources=27 inventory=full.yaml
|
||||
```
|
||||
|
||||
## Multi-cluster mesh on GKE
|
||||
@@ -128,13 +128,6 @@ module "project" {
|
||||
]
|
||||
}
|
||||
|
||||
resource "google_project_iam_member" "gkehub_fix" {
|
||||
member = "serviceAccount:${module.project.service_accounts.robots.fleet}"
|
||||
project = module.project.project_id
|
||||
role = "roles/gkehub.serviceAgent"
|
||||
}
|
||||
|
||||
|
||||
module "vpc" {
|
||||
source = "./fabric/modules/net-vpc"
|
||||
project_id = module.project.project_id
|
||||
@@ -282,7 +275,6 @@ module "cluster_2_nodepool" {
|
||||
module "hub" {
|
||||
source = "./fabric/modules/gke-hub"
|
||||
project_id = module.project.project_id
|
||||
depends_on = [google_project_iam_member.gkehub_fix]
|
||||
clusters = {
|
||||
cluster-1 = module.cluster_1.id
|
||||
cluster-2 = module.cluster_2.id
|
||||
@@ -301,7 +293,7 @@ module "hub" {
|
||||
]
|
||||
}
|
||||
|
||||
# tftest modules=8 resources=34
|
||||
# tftest modules=8 resources=43
|
||||
```
|
||||
<!-- BEGIN TFDOC -->
|
||||
## Variables
|
||||
|
||||
Reference in New Issue
Block a user