Skip to content

Commit

Permalink
fix: source node pools' auto_upgrade configuration from the GKE clust…
Browse files Browse the repository at this point in the history
…er (#1293)

default_auto_upgrade
  • Loading branch information
MrwanBaghdad authored Jun 21, 2022
1 parent 37b5da8 commit c7c9f44
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion autogen/main/cluster.tf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ resource "google_container_node_pool" "pools" {

cluster = google_container_cluster.primary.name

version = lookup(each.value, "auto_upgrade", false) ? "" : lookup(
version = lookup(each.value, "auto_upgrade", local.default_auto_upgrade) ? "" : lookup(
each.value,
"version",
google_container_cluster.primary.min_master_version,
Expand Down
2 changes: 1 addition & 1 deletion cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ resource "google_container_node_pool" "pools" {

cluster = google_container_cluster.primary.name

version = lookup(each.value, "auto_upgrade", false) ? "" : lookup(
version = lookup(each.value, "auto_upgrade", local.default_auto_upgrade) ? "" : lookup(
each.value,
"version",
google_container_cluster.primary.min_master_version,
Expand Down
2 changes: 1 addition & 1 deletion modules/beta-private-cluster-update-variant/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ resource "google_container_node_pool" "pools" {

cluster = google_container_cluster.primary.name

version = lookup(each.value, "auto_upgrade", false) ? "" : lookup(
version = lookup(each.value, "auto_upgrade", local.default_auto_upgrade) ? "" : lookup(
each.value,
"version",
google_container_cluster.primary.min_master_version,
Expand Down
2 changes: 1 addition & 1 deletion modules/beta-private-cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ resource "google_container_node_pool" "pools" {

cluster = google_container_cluster.primary.name

version = lookup(each.value, "auto_upgrade", false) ? "" : lookup(
version = lookup(each.value, "auto_upgrade", local.default_auto_upgrade) ? "" : lookup(
each.value,
"version",
google_container_cluster.primary.min_master_version,
Expand Down
2 changes: 1 addition & 1 deletion modules/beta-public-cluster-update-variant/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ resource "google_container_node_pool" "pools" {

cluster = google_container_cluster.primary.name

version = lookup(each.value, "auto_upgrade", false) ? "" : lookup(
version = lookup(each.value, "auto_upgrade", local.default_auto_upgrade) ? "" : lookup(
each.value,
"version",
google_container_cluster.primary.min_master_version,
Expand Down
2 changes: 1 addition & 1 deletion modules/beta-public-cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ resource "google_container_node_pool" "pools" {

cluster = google_container_cluster.primary.name

version = lookup(each.value, "auto_upgrade", false) ? "" : lookup(
version = lookup(each.value, "auto_upgrade", local.default_auto_upgrade) ? "" : lookup(
each.value,
"version",
google_container_cluster.primary.min_master_version,
Expand Down
2 changes: 1 addition & 1 deletion modules/private-cluster-update-variant/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ resource "google_container_node_pool" "pools" {

cluster = google_container_cluster.primary.name

version = lookup(each.value, "auto_upgrade", false) ? "" : lookup(
version = lookup(each.value, "auto_upgrade", local.default_auto_upgrade) ? "" : lookup(
each.value,
"version",
google_container_cluster.primary.min_master_version,
Expand Down
2 changes: 1 addition & 1 deletion modules/private-cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ resource "google_container_node_pool" "pools" {

cluster = google_container_cluster.primary.name

version = lookup(each.value, "auto_upgrade", false) ? "" : lookup(
version = lookup(each.value, "auto_upgrade", local.default_auto_upgrade) ? "" : lookup(
each.value,
"version",
google_container_cluster.primary.min_master_version,
Expand Down

0 comments on commit c7c9f44

Please sign in to comment.