Skip to content

Commit

Permalink
use right google project for pet
Browse files Browse the repository at this point in the history
  • Loading branch information
dvoet committed Oct 29, 2024
1 parent 880147e commit 677f7e1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -439,11 +439,12 @@ class GKEInterpreter[F[_]](
// Associate GSA to newly created KSA
// This string is constructed based on Google requirements to associate a GSA to a KSA
// (https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity#creating_a_relationship_between_ksas_and_gsas)
petSAProject = GoogleProject(gsa.value.split("@").last.split("\\.").head)
ksaToGsa = s"${googleProject.value}.svc.id.goog[${namespaceName.value}/${ksaName.value}]"
call = F.fromFuture(
F.delay(
googleIamDAO.addIamPolicyBindingOnServiceAccount(googleProject,
gsa,
petSAProject,
WorkbenchEmail(ksaToGsa),
Set("roles/iam.workloadIdentityUser")
)
Expand Down

0 comments on commit 677f7e1

Please sign in to comment.