Skip to content

Commit 019d06e

Browse files
committed
feat: add support for felx_start
Signed-off-by: drfaust92 <ilia.lazebnik@gmail.com>
1 parent e5ade9c commit 019d06e

File tree

16 files changed

+35
-0
lines changed

16 files changed

+35
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@ The node_pools variable takes the following parameters:
400400
| reservation_affinity_values | The list of label values of reservation resources. For example: the name of the specific reservation when using a key of "compute.googleapis.com/reservation-name". This should be passed as comma separated string. | | Optional |
401401
| local_ssd_encryption_mode | specifies the method used for encrypting the local SSDs attached to the node. Valid values are: "STANDARD_ENCRYPTION" and "EPHEMERAL_KEY_ENCRYPTION" | | Optional |
402402
| max_run_duration | The runtime of each node in the node pool in seconds, terminated by 's'. Example: "3600s". | null | Optional |
403+
| flex_start | Enables Flex Start provisioning model for the node pool | null | Optional |
403404

404405
## windows_node_pools variable
405406

autogen/main/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ The node_pools variable takes the following parameters:
285285
| reservation_affinity_values | The list of label values of reservation resources. For example: the name of the specific reservation when using a key of "compute.googleapis.com/reservation-name". This should be passed as comma separated string. | | Optional |
286286
| local_ssd_encryption_mode | specifies the method used for encrypting the local SSDs attached to the node. Valid values are: "STANDARD_ENCRYPTION" and "EPHEMERAL_KEY_ENCRYPTION" | | Optional |
287287
| max_run_duration | The runtime of each node in the node pool in seconds, terminated by 's'. Example: "3600s". | null | Optional |
288+
| flex_start | Enables Flex Start provisioning model for the node pool | null | Optional |
288289

289290
## windows_node_pools variable
290291

autogen/main/cluster.tf.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,7 @@ resource "google_container_cluster" "primary" {
678678

679679
local_ssd_encryption_mode = lookup(var.node_pools[0], "local_ssd_encryption_mode", null)
680680
max_run_duration = lookup(var.node_pools[0], "max_run_duration", null)
681+
flex_start = lookup(var.node_pools[0], "flex_start", null)
681682
}
682683
}
683684
{% endif %}
@@ -846,6 +847,7 @@ locals {
846847
"secondary_boot_disk",
847848
"local_ssd_encryption_mode",
848849
"max_run_duration",
850+
"flex_start",
849851
]
850852
}
851853

@@ -1288,6 +1290,7 @@ resource "google_container_node_pool" "windows_pools" {
12881290

12891291
local_ssd_encryption_mode = lookup(each.value, "local_ssd_encryption_mode", null)
12901292
max_run_duration = lookup(each.value, "max_run_duration", null)
1293+
flex_start = lookup(each.value, "flex_start", null)
12911294
}
12921295

12931296
lifecycle {

cluster.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,7 @@ resource "google_container_cluster" "primary" {
529529

530530
local_ssd_encryption_mode = lookup(var.node_pools[0], "local_ssd_encryption_mode", null)
531531
max_run_duration = lookup(var.node_pools[0], "max_run_duration", null)
532+
flex_start = lookup(var.node_pools[0], "flex_start", null)
532533
}
533534
}
534535

@@ -975,6 +976,7 @@ resource "google_container_node_pool" "pools" {
975976

976977
local_ssd_encryption_mode = lookup(each.value, "local_ssd_encryption_mode", null)
977978
max_run_duration = lookup(each.value, "max_run_duration", null)
979+
flex_start = lookup(each.value, "flex_start", null)
978980
}
979981

980982
lifecycle {
@@ -1306,6 +1308,7 @@ resource "google_container_node_pool" "windows_pools" {
13061308

13071309
local_ssd_encryption_mode = lookup(each.value, "local_ssd_encryption_mode", null)
13081310
max_run_duration = lookup(each.value, "max_run_duration", null)
1311+
flex_start = lookup(each.value, "flex_start", null)
13091312
}
13101313

13111314
lifecycle {

modules/beta-private-cluster-update-variant/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@ The node_pools variable takes the following parameters:
454454
| reservation_affinity_values | The list of label values of reservation resources. For example: the name of the specific reservation when using a key of "compute.googleapis.com/reservation-name". This should be passed as comma separated string. | | Optional |
455455
| local_ssd_encryption_mode | specifies the method used for encrypting the local SSDs attached to the node. Valid values are: "STANDARD_ENCRYPTION" and "EPHEMERAL_KEY_ENCRYPTION" | | Optional |
456456
| max_run_duration | The runtime of each node in the node pool in seconds, terminated by 's'. Example: "3600s". | null | Optional |
457+
| flex_start | Enables Flex Start provisioning model for the node pool | null | Optional |
457458

458459
## windows_node_pools variable
459460

modules/beta-private-cluster-update-variant/cluster.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,7 @@ resource "google_container_cluster" "primary" {
573573

574574
local_ssd_encryption_mode = lookup(var.node_pools[0], "local_ssd_encryption_mode", null)
575575
max_run_duration = lookup(var.node_pools[0], "max_run_duration", null)
576+
flex_start = lookup(var.node_pools[0], "flex_start", null)
576577
}
577578
}
578579

@@ -725,6 +726,7 @@ locals {
725726
"secondary_boot_disk",
726727
"local_ssd_encryption_mode",
727728
"max_run_duration",
729+
"flex_start",
728730
]
729731
}
730732

@@ -1138,6 +1140,7 @@ resource "google_container_node_pool" "pools" {
11381140

11391141
local_ssd_encryption_mode = lookup(each.value, "local_ssd_encryption_mode", null)
11401142
max_run_duration = lookup(each.value, "max_run_duration", null)
1143+
flex_start = lookup(each.value, "flex_start", null)
11411144
}
11421145

11431146
lifecycle {
@@ -1483,6 +1486,7 @@ resource "google_container_node_pool" "windows_pools" {
14831486

14841487
local_ssd_encryption_mode = lookup(each.value, "local_ssd_encryption_mode", null)
14851488
max_run_duration = lookup(each.value, "max_run_duration", null)
1489+
flex_start = lookup(each.value, "flex_start", null)
14861490
}
14871491

14881492
lifecycle {

modules/beta-private-cluster/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,7 @@ The node_pools variable takes the following parameters:
432432
| reservation_affinity_values | The list of label values of reservation resources. For example: the name of the specific reservation when using a key of "compute.googleapis.com/reservation-name". This should be passed as comma separated string. | | Optional |
433433
| local_ssd_encryption_mode | specifies the method used for encrypting the local SSDs attached to the node. Valid values are: "STANDARD_ENCRYPTION" and "EPHEMERAL_KEY_ENCRYPTION" | | Optional |
434434
| max_run_duration | The runtime of each node in the node pool in seconds, terminated by 's'. Example: "3600s". | null | Optional |
435+
| flex_start | Enables Flex Start provisioning model for the node pool | null | Optional |
435436

436437
## windows_node_pools variable
437438

modules/beta-private-cluster/cluster.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,7 @@ resource "google_container_cluster" "primary" {
573573

574574
local_ssd_encryption_mode = lookup(var.node_pools[0], "local_ssd_encryption_mode", null)
575575
max_run_duration = lookup(var.node_pools[0], "max_run_duration", null)
576+
flex_start = lookup(var.node_pools[0], "flex_start", null)
576577
}
577578
}
578579

@@ -1055,6 +1056,7 @@ resource "google_container_node_pool" "pools" {
10551056

10561057
local_ssd_encryption_mode = lookup(each.value, "local_ssd_encryption_mode", null)
10571058
max_run_duration = lookup(each.value, "max_run_duration", null)
1059+
flex_start = lookup(each.value, "flex_start", null)
10581060
}
10591061

10601062
lifecycle {
@@ -1399,6 +1401,7 @@ resource "google_container_node_pool" "windows_pools" {
13991401

14001402
local_ssd_encryption_mode = lookup(each.value, "local_ssd_encryption_mode", null)
14011403
max_run_duration = lookup(each.value, "max_run_duration", null)
1404+
flex_start = lookup(each.value, "flex_start", null)
14021405
}
14031406

14041407
lifecycle {

modules/beta-public-cluster-update-variant/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,7 @@ The node_pools variable takes the following parameters:
441441
| reservation_affinity_values | The list of label values of reservation resources. For example: the name of the specific reservation when using a key of "compute.googleapis.com/reservation-name". This should be passed as comma separated string. | | Optional |
442442
| local_ssd_encryption_mode | specifies the method used for encrypting the local SSDs attached to the node. Valid values are: "STANDARD_ENCRYPTION" and "EPHEMERAL_KEY_ENCRYPTION" | | Optional |
443443
| max_run_duration | The runtime of each node in the node pool in seconds, terminated by 's'. Example: "3600s". | null | Optional |
444+
| flex_start | Enables Flex Start provisioning model for the node pool | null | Optional |
444445

445446
## windows_node_pools variable
446447

modules/beta-public-cluster-update-variant/cluster.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,7 @@ resource "google_container_cluster" "primary" {
573573

574574
local_ssd_encryption_mode = lookup(var.node_pools[0], "local_ssd_encryption_mode", null)
575575
max_run_duration = lookup(var.node_pools[0], "max_run_duration", null)
576+
flex_start = lookup(var.node_pools[0], "flex_start", null)
576577
}
577578
}
578579

@@ -703,6 +704,7 @@ locals {
703704
"secondary_boot_disk",
704705
"local_ssd_encryption_mode",
705706
"max_run_duration",
707+
"flex_start",
706708
]
707709
}
708710

@@ -1116,6 +1118,7 @@ resource "google_container_node_pool" "pools" {
11161118

11171119
local_ssd_encryption_mode = lookup(each.value, "local_ssd_encryption_mode", null)
11181120
max_run_duration = lookup(each.value, "max_run_duration", null)
1121+
flex_start = lookup(each.value, "flex_start", null)
11191122
}
11201123

11211124
lifecycle {
@@ -1461,6 +1464,7 @@ resource "google_container_node_pool" "windows_pools" {
14611464

14621465
local_ssd_encryption_mode = lookup(each.value, "local_ssd_encryption_mode", null)
14631466
max_run_duration = lookup(each.value, "max_run_duration", null)
1467+
flex_start = lookup(each.value, "flex_start", null)
14641468
}
14651469

14661470
lifecycle {

0 commit comments

Comments
 (0)