Skip to content

Commit

Permalink
support supworkload_identity_config on autopilot
Browse files Browse the repository at this point in the history
  • Loading branch information
DrFaust92 committed Jul 26, 2024
1 parent 674f772 commit 8f22df5
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 @@ -283,6 +283,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 @@ -264,6 +264,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 8f22df5

Please sign in to comment.