Skip to content

Commit

Permalink
Set BATCH_NODE_COUNT default value to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgEsteves committed Feb 24, 2023
1 parent ce3542e commit 2e24816
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion autogen/main/cluster.tf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ resource "google_container_node_pool" "windows_pools" {
standard_rollout_policy {
batch_soak_duration = lookup(each.value, "batch_soak_duration", "0s")
batch_percentage = lookup(each.value, "batch_percentage", null)
batch_node_count = lookup(each.value, "batch_node_count", null)
batch_node_count = lookup(each.value, "batch_node_count", 1)
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ resource "google_container_node_pool" "pools" {
standard_rollout_policy {
batch_soak_duration = lookup(each.value, "batch_soak_duration", "0s")
batch_percentage = lookup(each.value, "batch_percentage", null)
batch_node_count = lookup(each.value, "batch_node_count", null)
batch_node_count = lookup(each.value, "batch_node_count", 1)
}
}
}
Expand Down Expand Up @@ -604,7 +604,7 @@ resource "google_container_node_pool" "windows_pools" {
standard_rollout_policy {
batch_soak_duration = lookup(each.value, "batch_soak_duration", "0s")
batch_percentage = lookup(each.value, "batch_percentage", null)
batch_node_count = lookup(each.value, "batch_node_count", null)
batch_node_count = lookup(each.value, "batch_node_count", 1)
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions modules/beta-private-cluster-update-variant/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ resource "google_container_node_pool" "pools" {
standard_rollout_policy {
batch_soak_duration = lookup(each.value, "batch_soak_duration", "0s")
batch_percentage = lookup(each.value, "batch_percentage", null)
batch_node_count = lookup(each.value, "batch_node_count", null)
batch_node_count = lookup(each.value, "batch_node_count", 1)
}
}
}
Expand Down Expand Up @@ -833,7 +833,7 @@ resource "google_container_node_pool" "windows_pools" {
standard_rollout_policy {
batch_soak_duration = lookup(each.value, "batch_soak_duration", "0s")
batch_percentage = lookup(each.value, "batch_percentage", null)
batch_node_count = lookup(each.value, "batch_node_count", null)
batch_node_count = lookup(each.value, "batch_node_count", 1)
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions modules/beta-private-cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ resource "google_container_node_pool" "pools" {
standard_rollout_policy {
batch_soak_duration = lookup(each.value, "batch_soak_duration", "0s")
batch_percentage = lookup(each.value, "batch_percentage", null)
batch_node_count = lookup(each.value, "batch_node_count", null)
batch_node_count = lookup(each.value, "batch_node_count", 1)
}
}
}
Expand Down Expand Up @@ -738,7 +738,7 @@ resource "google_container_node_pool" "windows_pools" {
standard_rollout_policy {
batch_soak_duration = lookup(each.value, "batch_soak_duration", "0s")
batch_percentage = lookup(each.value, "batch_percentage", null)
batch_node_count = lookup(each.value, "batch_node_count", null)
batch_node_count = lookup(each.value, "batch_node_count", 1)
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions modules/beta-public-cluster-update-variant/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ resource "google_container_node_pool" "pools" {
standard_rollout_policy {
batch_soak_duration = lookup(each.value, "batch_soak_duration", "0s")
batch_percentage = lookup(each.value, "batch_percentage", null)
batch_node_count = lookup(each.value, "batch_node_count", null)
batch_node_count = lookup(each.value, "batch_node_count", 1)
}
}
}
Expand Down Expand Up @@ -812,7 +812,7 @@ resource "google_container_node_pool" "windows_pools" {
standard_rollout_policy {
batch_soak_duration = lookup(each.value, "batch_soak_duration", "0s")
batch_percentage = lookup(each.value, "batch_percentage", null)
batch_node_count = lookup(each.value, "batch_node_count", null)
batch_node_count = lookup(each.value, "batch_node_count", 1)
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions modules/beta-public-cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ resource "google_container_node_pool" "pools" {
standard_rollout_policy {
batch_soak_duration = lookup(each.value, "batch_soak_duration", "0s")
batch_percentage = lookup(each.value, "batch_percentage", null)
batch_node_count = lookup(each.value, "batch_node_count", null)
batch_node_count = lookup(each.value, "batch_node_count", 1)
}
}
}
Expand Down Expand Up @@ -717,7 +717,7 @@ resource "google_container_node_pool" "windows_pools" {
standard_rollout_policy {
batch_soak_duration = lookup(each.value, "batch_soak_duration", "0s")
batch_percentage = lookup(each.value, "batch_percentage", null)
batch_node_count = lookup(each.value, "batch_node_count", null)
batch_node_count = lookup(each.value, "batch_node_count", 1)
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions modules/private-cluster-update-variant/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ resource "google_container_node_pool" "pools" {
standard_rollout_policy {
batch_soak_duration = lookup(each.value, "batch_soak_duration", "0s")
batch_percentage = lookup(each.value, "batch_percentage", null)
batch_node_count = lookup(each.value, "batch_node_count", null)
batch_node_count = lookup(each.value, "batch_node_count", 1)
}
}
}
Expand Down Expand Up @@ -718,7 +718,7 @@ resource "google_container_node_pool" "windows_pools" {
standard_rollout_policy {
batch_soak_duration = lookup(each.value, "batch_soak_duration", "0s")
batch_percentage = lookup(each.value, "batch_percentage", null)
batch_node_count = lookup(each.value, "batch_node_count", null)
batch_node_count = lookup(each.value, "batch_node_count", 1)
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions modules/private-cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ resource "google_container_node_pool" "pools" {
standard_rollout_policy {
batch_soak_duration = lookup(each.value, "batch_soak_duration", "0s")
batch_percentage = lookup(each.value, "batch_percentage", null)
batch_node_count = lookup(each.value, "batch_node_count", null)
batch_node_count = lookup(each.value, "batch_node_count", 1)
}
}
}
Expand Down Expand Up @@ -623,7 +623,7 @@ resource "google_container_node_pool" "windows_pools" {
standard_rollout_policy {
batch_soak_duration = lookup(each.value, "batch_soak_duration", "0s")
batch_percentage = lookup(each.value, "batch_percentage", null)
batch_node_count = lookup(each.value, "batch_node_count", null)
batch_node_count = lookup(each.value, "batch_node_count", 1)
}
}
}
Expand Down

0 comments on commit 2e24816

Please sign in to comment.