Skip to content

Commit e00286f

Browse files
authored
fix: Use provided k8s service account name when setting up workload identity (terraform-google-modules#972)
1 parent 8764b76 commit e00286f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/workload-identity/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ resource "kubernetes_service_account" "main" {
4848

4949
automount_service_account_token = var.automount_service_account_token
5050
metadata {
51-
name = var.name
51+
name = local.k8s_given_name
5252
namespace = var.namespace
5353
annotations = {
5454
"iam.gke.io/gcp-service-account" = local.gcp_sa_email

0 commit comments

Comments
 (0)