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" {
186
186
state = database_encryption.value.state
187
187
}
188
188
}
189
+
190
+ workload_identity_config {
191
+ identity_namespace = var.identity_namespace
192
+ }
189
193
{% endif % }
190
194
}
191
195
Original file line number Diff line number Diff line change @@ -182,6 +182,10 @@ resource "google_container_cluster" "zonal_primary" {
182
182
state = database_encryption.value.state
183
183
}
184
184
}
185
+
186
+ workload_identity_config {
187
+ identity_namespace = var.identity_namespace
188
+ }
185
189
{% endif % }
186
190
}
187
191
Original file line number Diff line number Diff line change @@ -376,4 +376,11 @@ variable "enable_intranode_visibility" {
376
376
description = " Vertical Pod Autoscaling automatically adjusts the resources of pods controlled by it"
377
377
default = false
378
378
}
379
+
380
+ variable " identity_namespace" {
381
+ type = string
382
+ description = " Workload Identity namespace"
383
+ default = " "
384
+ }
385
+
379
386
{% endif % }
Original file line number Diff line number Diff line change @@ -173,10 +173,6 @@ resource "google_container_cluster" "primary" {
173
173
state = database_encryption. value . state
174
174
}
175
175
}
176
-
177
- workload_identity_config {
178
- identity_namespace = var. identity_namespace
179
- }
180
176
}
181
177
182
178
/* *****************************************
Original file line number Diff line number Diff line change @@ -169,10 +169,6 @@ resource "google_container_cluster" "zonal_primary" {
169
169
state = database_encryption. value . state
170
170
}
171
171
}
172
-
173
- workload_identity_config {
174
- identity_namespace = var. identity_namespace
175
- }
176
172
}
177
173
178
174
/* *****************************************
Original file line number Diff line number Diff line change @@ -373,9 +373,3 @@ variable "enable_vertical_pod_autoscaling" {
373
373
description = " Vertical Pod Autoscaling automatically adjusts the resources of pods controlled by it"
374
374
default = false
375
375
}
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