Skip to content

Commit

Permalink
feat: support workload_identity_config on autopilot (#2011)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Peabody <[email protected]>
  • Loading branch information
DrFaust92 and apeabody authored Aug 1, 2024
1 parent 7f31e96 commit b4f2e14
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 0 additions & 2 deletions autogen/main/cluster.tf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -601,15 +601,13 @@ resource "google_container_cluster" "primary" {
}
}

{% if autopilot_cluster != true %}
dynamic "workload_identity_config" {
for_each = local.cluster_workload_identity_config

content {
workload_pool = workload_identity_config.value.workload_pool
}
}
{% endif %}

{% if autopilot_cluster != true %}
dynamic "mesh_certificates" {
Expand Down
7 changes: 7 additions & 0 deletions modules/beta-autopilot-private-cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,13 @@ resource "google_container_cluster" "primary" {
}
}

dynamic "workload_identity_config" {
for_each = local.cluster_workload_identity_config

content {
workload_pool = workload_identity_config.value.workload_pool
}
}


dynamic "authenticator_groups_config" {
Expand Down
7 changes: 7 additions & 0 deletions modules/beta-autopilot-public-cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,13 @@ resource "google_container_cluster" "primary" {
}
}

dynamic "workload_identity_config" {
for_each = local.cluster_workload_identity_config

content {
workload_pool = workload_identity_config.value.workload_pool
}
}


dynamic "authenticator_groups_config" {
Expand Down

0 comments on commit b4f2e14

Please sign in to comment.