File tree Expand file tree Collapse file tree 6 files changed +15
-14
lines changed
modules/beta-private-cluster Expand file tree Collapse file tree 6 files changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -186,6 +186,10 @@ resource "google_container_cluster" "primary" {
186186 state = database_encryption.value.state
187187 }
188188 }
189+
190+ workload_identity_config {
191+ identity_namespace = var.identity_namespace
192+ }
189193{% endif % }
190194}
191195
Original file line number Diff line number Diff line change @@ -182,6 +182,10 @@ resource "google_container_cluster" "zonal_primary" {
182182 state = database_encryption.value.state
183183 }
184184 }
185+
186+ workload_identity_config {
187+ identity_namespace = var.identity_namespace
188+ }
185189{% endif % }
186190}
187191
Original file line number Diff line number Diff line change @@ -376,4 +376,11 @@ variable "enable_intranode_visibility" {
376376 description = " Vertical Pod Autoscaling automatically adjusts the resources of pods controlled by it"
377377 default = false
378378}
379+
380+ variable " identity_namespace" {
381+ type = string
382+ description = " Workload Identity namespace"
383+ default = " "
384+ }
385+
379386{% endif % }
Original file line number Diff line number Diff line change @@ -173,10 +173,6 @@ 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- }
180176}
181177
182178/* *****************************************
Original file line number Diff line number Diff line change @@ -169,10 +169,6 @@ 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- }
176172}
177173
178174/* *****************************************
Original file line number Diff line number Diff line change @@ -373,9 +373,3 @@ 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- }
You can’t perform that action at this time.
0 commit comments