Skip to content

Commit

Permalink
remove unnecessary foreach for gateway-api channel
Browse files Browse the repository at this point in the history
  • Loading branch information
tuunit committed Dec 26, 2022
1 parent c5a3518 commit cba6023
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 60 deletions.
8 changes: 2 additions & 6 deletions autogen/main/cluster.tf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,8 @@ resource "google_container_cluster" "primary" {
}
}

dynamic "gateway_api_config" {
for_each = local.gateway_api_channel

content {
channel = gateway_api_channel.value
}
gateway_api_config {
channel = gateway_api_channel.value
}

dynamic "cost_management_config" {
Expand Down
8 changes: 2 additions & 6 deletions cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,8 @@ resource "google_container_cluster" "primary" {
}
}

dynamic "gateway_api_config" {
for_each = local.gateway_api_channel

content {
channel = gateway_api_channel.value
}
gateway_api_config {
channel = gateway_api_channel.value
}

dynamic "cost_management_config" {
Expand Down
8 changes: 2 additions & 6 deletions modules/beta-autopilot-private-cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,8 @@ resource "google_container_cluster" "primary" {
}
}

dynamic "gateway_api_config" {
for_each = local.gateway_api_channel

content {
channel = gateway_api_channel.value
}
gateway_api_config {
channel = gateway_api_channel.value
}

dynamic "cost_management_config" {
Expand Down
8 changes: 2 additions & 6 deletions modules/beta-autopilot-public-cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,8 @@ resource "google_container_cluster" "primary" {
}
}

dynamic "gateway_api_config" {
for_each = local.gateway_api_channel

content {
channel = gateway_api_channel.value
}
gateway_api_config {
channel = gateway_api_channel.value
}

dynamic "cost_management_config" {
Expand Down
8 changes: 2 additions & 6 deletions modules/beta-private-cluster-update-variant/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,8 @@ resource "google_container_cluster" "primary" {
}
}

dynamic "gateway_api_config" {
for_each = local.gateway_api_channel

content {
channel = gateway_api_channel.value
}
gateway_api_config {
channel = gateway_api_channel.value
}

dynamic "cost_management_config" {
Expand Down
8 changes: 2 additions & 6 deletions modules/beta-private-cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,8 @@ resource "google_container_cluster" "primary" {
}
}

dynamic "gateway_api_config" {
for_each = local.gateway_api_channel

content {
channel = gateway_api_channel.value
}
gateway_api_config {
channel = gateway_api_channel.value
}

dynamic "cost_management_config" {
Expand Down
8 changes: 2 additions & 6 deletions modules/beta-public-cluster-update-variant/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,8 @@ resource "google_container_cluster" "primary" {
}
}

dynamic "gateway_api_config" {
for_each = local.gateway_api_channel

content {
channel = gateway_api_channel.value
}
gateway_api_config {
channel = gateway_api_channel.value
}

dynamic "cost_management_config" {
Expand Down
8 changes: 2 additions & 6 deletions modules/beta-public-cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,8 @@ resource "google_container_cluster" "primary" {
}
}

dynamic "gateway_api_config" {
for_each = local.gateway_api_channel

content {
channel = gateway_api_channel.value
}
gateway_api_config {
channel = gateway_api_channel.value
}

dynamic "cost_management_config" {
Expand Down
8 changes: 2 additions & 6 deletions modules/private-cluster-update-variant/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,8 @@ resource "google_container_cluster" "primary" {
}
}

dynamic "gateway_api_config" {
for_each = local.gateway_api_channel

content {
channel = gateway_api_channel.value
}
gateway_api_config {
channel = gateway_api_channel.value
}

dynamic "cost_management_config" {
Expand Down
8 changes: 2 additions & 6 deletions modules/private-cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,8 @@ resource "google_container_cluster" "primary" {
}
}

dynamic "gateway_api_config" {
for_each = local.gateway_api_channel

content {
channel = gateway_api_channel.value
}
gateway_api_config {
channel = gateway_api_channel.value
}

dynamic "cost_management_config" {
Expand Down

0 comments on commit cba6023

Please sign in to comment.