Skip to content

Commit 7553a2b

Browse files
sasha-sbharathkkb
andauthored
fix: misspellings in comments and min_cpu_platform (#1207)
* propagate enable_gcfs * move changes to autogen * Fix misspellings in comments and min_cpu_platform Fix misspellings in comments and inconsistent lookup in node_config.min_cpu_platform. Co-authored-by: Bharath KKB <bharathkrishnakb@gmail.com>
1 parent 55a1e15 commit 7553a2b

File tree

11 files changed

+14
-14
lines changed

11 files changed

+14
-14
lines changed

Diff for: autogen/main/cluster.tf.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ resource "google_container_node_pool" "pools" {
578578
node_config {
579579
image_type = lookup(each.value, "image_type", "COS_CONTAINERD")
580580
machine_type = lookup(each.value, "machine_type", "e2-medium")
581-
min_cpu_platform = lookup(var.node_pools[0], "min_cpu_platform", "")
581+
min_cpu_platform = lookup(each.value, "min_cpu_platform", "")
582582
gcfs_config {
583583
enabled = lookup(each.value, "enable_gcfs", false)
584584
}

Diff for: autogen/safer-cluster/main.tf.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ module "gke" {
7979

8080
initial_node_count = var.initial_node_count
8181

82-
// We suggest removing the default node pull, as it cannot be modified without
82+
// We suggest removing the default node pool, as it cannot be modified without
8383
// destroying the cluster.
8484
remove_default_node_pool = true
8585

@@ -103,7 +103,7 @@ module "gke" {
103103

104104
// We either:
105105
// - Create a dedicated service account with minimal permissions to run nodes.
106-
// All applications shuold run with an identity defined via Workload Identity anyway.
106+
// All applications should run with an identity defined via Workload Identity anyway.
107107
// - Use a service account passed as a parameter to the module, in case the user
108108
// wants to maintain control of their service accounts.
109109
create_service_account = var.compute_engine_service_account == "" ? true : false

Diff for: cluster.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ resource "google_container_node_pool" "pools" {
268268
node_config {
269269
image_type = lookup(each.value, "image_type", "COS_CONTAINERD")
270270
machine_type = lookup(each.value, "machine_type", "e2-medium")
271-
min_cpu_platform = lookup(var.node_pools[0], "min_cpu_platform", "")
271+
min_cpu_platform = lookup(each.value, "min_cpu_platform", "")
272272
gcfs_config {
273273
enabled = lookup(each.value, "enable_gcfs", false)
274274
}

Diff for: modules/beta-private-cluster-update-variant/cluster.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ resource "google_container_node_pool" "pools" {
503503
node_config {
504504
image_type = lookup(each.value, "image_type", "COS_CONTAINERD")
505505
machine_type = lookup(each.value, "machine_type", "e2-medium")
506-
min_cpu_platform = lookup(var.node_pools[0], "min_cpu_platform", "")
506+
min_cpu_platform = lookup(each.value, "min_cpu_platform", "")
507507
gcfs_config {
508508
enabled = lookup(each.value, "enable_gcfs", false)
509509
}

Diff for: modules/beta-private-cluster/cluster.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ resource "google_container_node_pool" "pools" {
417417
node_config {
418418
image_type = lookup(each.value, "image_type", "COS_CONTAINERD")
419419
machine_type = lookup(each.value, "machine_type", "e2-medium")
420-
min_cpu_platform = lookup(var.node_pools[0], "min_cpu_platform", "")
420+
min_cpu_platform = lookup(each.value, "min_cpu_platform", "")
421421
gcfs_config {
422422
enabled = lookup(each.value, "enable_gcfs", false)
423423
}

Diff for: modules/beta-public-cluster-update-variant/cluster.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ resource "google_container_node_pool" "pools" {
484484
node_config {
485485
image_type = lookup(each.value, "image_type", "COS_CONTAINERD")
486486
machine_type = lookup(each.value, "machine_type", "e2-medium")
487-
min_cpu_platform = lookup(var.node_pools[0], "min_cpu_platform", "")
487+
min_cpu_platform = lookup(each.value, "min_cpu_platform", "")
488488
gcfs_config {
489489
enabled = lookup(each.value, "enable_gcfs", false)
490490
}

Diff for: modules/beta-public-cluster/cluster.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ resource "google_container_node_pool" "pools" {
398398
node_config {
399399
image_type = lookup(each.value, "image_type", "COS_CONTAINERD")
400400
machine_type = lookup(each.value, "machine_type", "e2-medium")
401-
min_cpu_platform = lookup(var.node_pools[0], "min_cpu_platform", "")
401+
min_cpu_platform = lookup(each.value, "min_cpu_platform", "")
402402
gcfs_config {
403403
enabled = lookup(each.value, "enable_gcfs", false)
404404
}

Diff for: modules/private-cluster-update-variant/cluster.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ resource "google_container_node_pool" "pools" {
366366
node_config {
367367
image_type = lookup(each.value, "image_type", "COS_CONTAINERD")
368368
machine_type = lookup(each.value, "machine_type", "e2-medium")
369-
min_cpu_platform = lookup(var.node_pools[0], "min_cpu_platform", "")
369+
min_cpu_platform = lookup(each.value, "min_cpu_platform", "")
370370
gcfs_config {
371371
enabled = lookup(each.value, "enable_gcfs", false)
372372
}

Diff for: modules/private-cluster/cluster.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ resource "google_container_node_pool" "pools" {
281281
node_config {
282282
image_type = lookup(each.value, "image_type", "COS_CONTAINERD")
283283
machine_type = lookup(each.value, "machine_type", "e2-medium")
284-
min_cpu_platform = lookup(var.node_pools[0], "min_cpu_platform", "")
284+
min_cpu_platform = lookup(each.value, "min_cpu_platform", "")
285285
gcfs_config {
286286
enabled = lookup(each.value, "enable_gcfs", false)
287287
}

Diff for: modules/safer-cluster-update-variant/main.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ module "gke" {
7575

7676
initial_node_count = var.initial_node_count
7777

78-
// We suggest removing the default node pull, as it cannot be modified without
78+
// We suggest removing the default node pool, as it cannot be modified without
7979
// destroying the cluster.
8080
remove_default_node_pool = true
8181

@@ -99,7 +99,7 @@ module "gke" {
9999

100100
// We either:
101101
// - Create a dedicated service account with minimal permissions to run nodes.
102-
// All applications shuold run with an identity defined via Workload Identity anyway.
102+
// All applications should run with an identity defined via Workload Identity anyway.
103103
// - Use a service account passed as a parameter to the module, in case the user
104104
// wants to maintain control of their service accounts.
105105
create_service_account = var.compute_engine_service_account == "" ? true : false

Diff for: modules/safer-cluster/main.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ module "gke" {
7575

7676
initial_node_count = var.initial_node_count
7777

78-
// We suggest removing the default node pull, as it cannot be modified without
78+
// We suggest removing the default node pool, as it cannot be modified without
7979
// destroying the cluster.
8080
remove_default_node_pool = true
8181

@@ -99,7 +99,7 @@ module "gke" {
9999

100100
// We either:
101101
// - Create a dedicated service account with minimal permissions to run nodes.
102-
// All applications shuold run with an identity defined via Workload Identity anyway.
102+
// All applications should run with an identity defined via Workload Identity anyway.
103103
// - Use a service account passed as a parameter to the module, in case the user
104104
// wants to maintain control of their service accounts.
105105
create_service_account = var.compute_engine_service_account == "" ? true : false

0 commit comments

Comments
 (0)