Skip to content

Commit

Permalink
feat: Enable bufstream to use workload identity for auth
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpanzella committed Dec 9, 2024
1 parent afac51c commit 931b1e7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ locals {
create_network = var.network == null
k8s_sa_map = {
app = "wandb-app"
bufstream = "wandb-bufstream"
parquet = "wandb-parquet"
flat_runs = "wandb-flat-run-fields-updater"
weave = "wandb-weave"
Expand Down Expand Up @@ -326,6 +327,15 @@ module "wandb" {
]
}

bufstream = {
serviceAccount = var.create_workload_identity ? {
name = local.k8s_sa_map.bufstream
annotations = { "iam.gke.io/gcp-service-account" = module.service_accounts.sa_account_role }
} : {
name = ""
annotations = {}
}
}
ingress = {
create = var.public_access # external ingress for public connection
nameOverride = var.namespace
Expand Down

0 comments on commit 931b1e7

Please sign in to comment.