Skip to content

Commit b4f2e14

Browse files
DrFaust92apeabody
andauthored
feat: support workload_identity_config on autopilot (terraform-google-modules#2011)
Co-authored-by: Andrew Peabody <[email protected]>
1 parent 7f31e96 commit b4f2e14

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

autogen/main/cluster.tf.tmpl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,15 +601,13 @@ resource "google_container_cluster" "primary" {
601601
}
602602
}
603603

604-
{% if autopilot_cluster != true %}
605604
dynamic "workload_identity_config" {
606605
for_each = local.cluster_workload_identity_config
607606

608607
content {
609608
workload_pool = workload_identity_config.value.workload_pool
610609
}
611610
}
612-
{% endif %}
613611

614612
{% if autopilot_cluster != true %}
615613
dynamic "mesh_certificates" {

modules/beta-autopilot-private-cluster/cluster.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,13 @@ resource "google_container_cluster" "primary" {
290290
}
291291
}
292292

293+
dynamic "workload_identity_config" {
294+
for_each = local.cluster_workload_identity_config
295+
296+
content {
297+
workload_pool = workload_identity_config.value.workload_pool
298+
}
299+
}
293300

294301

295302
dynamic "authenticator_groups_config" {

modules/beta-autopilot-public-cluster/cluster.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,13 @@ resource "google_container_cluster" "primary" {
271271
}
272272
}
273273

274+
dynamic "workload_identity_config" {
275+
for_each = local.cluster_workload_identity_config
276+
277+
content {
278+
workload_pool = workload_identity_config.value.workload_pool
279+
}
280+
}
274281

275282

276283
dynamic "authenticator_groups_config" {

0 commit comments

Comments
 (0)