Skip to content

Commit

Permalink
fix: Weave SA (#152)
Browse files Browse the repository at this point in the history
* fix: Weave SA

* Weave Trace
  • Loading branch information
zacharyblasczyk authored Jul 22, 2024
1 parent 4983c69 commit 81aca11
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ locals {
create_bucket = var.bucket_name == ""
create_network = var.network == null
k8s_sa_map = {
app = "wandb-app"
parquet = "wandb-parquet"
flat_runs = "wandb-flat-run-fields-updater"
app = "wandb-app"
parquet = "wandb-parquet"
flat_runs = "wandb-flat-run-fields-updater"
weave = "wandb-weave"
weave_trace = "wandb-weave-trace"
}
}

Expand Down Expand Up @@ -349,6 +351,23 @@ module "wandb" {

weave = {
extraEnvs = var.weave_wandb_env
serviceAccount = var.create_workload_identity ? {
name = local.k8s_sa_map.weave
annotations = { "iam.gke.io/gcp-service-account" = module.service_accounts.sa_account_role }
} : {
name = null
annotations = {}
}
}

weave-trace = {
serviceAccount = var.create_workload_identity ? {
name = local.k8s_sa_map.weave_trace
annotations = { "iam.gke.io/gcp-service-account" = module.service_accounts.sa_account_role }
} : {
name = null
annotations = {}
}
}

parquet = {
Expand Down

0 comments on commit 81aca11

Please sign in to comment.