Skip to content

Commit 5ebccee

Browse files
author
sylvio.pedroza
committed
add workload identity support to beta-private-cluster
1 parent ed58124 commit 5ebccee

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

modules/beta-private-cluster/cluster_regional.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,10 @@ resource "google_container_cluster" "primary" {
173173
state = database_encryption.value.state
174174
}
175175
}
176+
177+
workload_identity_config {
178+
identity_namespace = var.identity_namespace
179+
}
176180
}
177181

178182
/******************************************

modules/beta-private-cluster/cluster_zonal.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ resource "google_container_cluster" "zonal_primary" {
169169
state = database_encryption.value.state
170170
}
171171
}
172+
173+
workload_identity_config {
174+
identity_namespace = var.identity_namespace
175+
}
172176
}
173177

174178
/******************************************

modules/beta-private-cluster/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,3 +373,9 @@ variable "enable_vertical_pod_autoscaling" {
373373
description = "Vertical Pod Autoscaling automatically adjusts the resources of pods controlled by it"
374374
default = false
375375
}
376+
377+
variable "identity_namespace" {
378+
type = string
379+
description = "Workload Identity namespace"
380+
default = ""
381+
}

0 commit comments

Comments
 (0)