Skip to content

Commit c77b673

Browse files
committed
feat: add support for flex start
Signed-off-by: drfaust92 <[email protected]>
1 parent 069d32c commit c77b673

File tree

28 files changed

+67
-32
lines changed

28 files changed

+67
-32
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@ The node_pools variable takes the following parameters:
398398
| 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 |
399399
| 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 |
400400
| max_run_duration | The runtime of each node in the node pool in seconds, terminated by 's'. Example: "3600s". | null | Optional |
401+
| flex_start | Enables Flex Start provisioning model for the node pool | null | Optional |
401402

402403
## windows_node_pools variable
403404

@@ -428,7 +429,7 @@ The [project factory](https://github.com/terraform-google-modules/terraform-goog
428429
#### Terraform and Plugins
429430

430431
- [Terraform](https://www.terraform.io/downloads.html) 1.3+
431-
- [Terraform Provider for GCP][terraform-provider-google] v6.38+
432+
- [Terraform Provider for GCP][terraform-provider-google] v6.39+
432433

433434
#### gcloud
434435

autogen/main/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ The node_pools variable takes the following parameters:
284284
| 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 |
285285
| 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 |
286286
| max_run_duration | The runtime of each node in the node pool in seconds, terminated by 's'. Example: "3600s". | null | Optional |
287+
| flex_start | Enables Flex Start provisioning model for the node pool | null | Optional |
287288

288289
## windows_node_pools variable
289290

@@ -316,9 +317,9 @@ The [project factory](https://github.com/terraform-google-modules/terraform-goog
316317

317318
- [Terraform](https://www.terraform.io/downloads.html) 1.3+
318319
{% if beta_cluster %}
319-
- [Terraform Provider for GCP Beta][terraform-provider-google-beta] v6.38+
320+
- [Terraform Provider for GCP Beta][terraform-provider-google-beta] v6.39+
320321
{% else %}
321-
- [Terraform Provider for GCP][terraform-provider-google] v6.38+
322+
- [Terraform Provider for GCP][terraform-provider-google] v6.39+
322323
{% endif %}
323324

324325
#### gcloud

autogen/main/cluster.tf.tmpl

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

677677
local_ssd_encryption_mode = lookup(var.node_pools[0], "local_ssd_encryption_mode", null)
678678
max_run_duration = lookup(var.node_pools[0], "max_run_duration", null)
679+
flex_start = lookup(var.node_pools[0], "flex_start", null)
679680
}
680681
}
681682
{% endif %}
@@ -844,6 +845,7 @@ locals {
844845
"secondary_boot_disk",
845846
"local_ssd_encryption_mode",
846847
"max_run_duration",
848+
"flex_start",
847849
]
848850
}
849851

@@ -1285,6 +1287,7 @@ resource "google_container_node_pool" "windows_pools" {
12851287

12861288
local_ssd_encryption_mode = lookup(each.value, "local_ssd_encryption_mode", null)
12871289
max_run_duration = lookup(each.value, "max_run_duration", null)
1290+
flex_start = lookup(each.value, "flex_start", null)
12881291
}
12891292

12901293
lifecycle {

autogen/main/versions.tf.tmpl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,33 +24,33 @@ terraform {
2424
required_providers {
2525
google = {
2626
source = "hashicorp/google"
27-
version = ">= 6.38.0, < 7"
27+
version = ">= 6.39.0, < 7"
2828
}
2929
google-beta = {
3030
source = "hashicorp/google-beta"
31-
version = ">= 6.38.0, < 7"
31+
version = ">= 6.39.0, < 7"
3232
}
3333
{% elif beta_cluster and autopilot_cluster %}
3434
required_providers {
3535
google = {
3636
source = "hashicorp/google"
37-
version = ">= 6.38.0, < 7"
37+
version = ">= 6.39.0, < 7"
3838
}
3939
google-beta = {
4040
source = "hashicorp/google-beta"
41-
version = ">= 6.38.0, < 7"
41+
version = ">= 6.39.0, < 7"
4242
}
4343
{% elif autopilot_cluster %}
4444
required_providers {
4545
google = {
4646
source = "hashicorp/google"
47-
version = ">= 6.38.0, < 7"
47+
version = ">= 6.39.0, < 7"
4848
}
4949
{% else %}
5050
required_providers {
5151
google = {
5252
source = "hashicorp/google"
53-
version = ">= 6.38.0, < 7"
53+
version = ">= 6.39.0, < 7"
5454
}
5555
{% endif %}
5656
kubernetes = {

cluster.tf

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

528528
local_ssd_encryption_mode = lookup(var.node_pools[0], "local_ssd_encryption_mode", null)
529529
max_run_duration = lookup(var.node_pools[0], "max_run_duration", null)
530+
flex_start = lookup(var.node_pools[0], "flex_start", null)
530531
}
531532
}
532533

@@ -972,6 +973,7 @@ resource "google_container_node_pool" "pools" {
972973

973974
local_ssd_encryption_mode = lookup(each.value, "local_ssd_encryption_mode", null)
974975
max_run_duration = lookup(each.value, "max_run_duration", null)
976+
flex_start = lookup(each.value, "flex_start", null)
975977
}
976978

977979
lifecycle {
@@ -1302,6 +1304,7 @@ resource "google_container_node_pool" "windows_pools" {
13021304

13031305
local_ssd_encryption_mode = lookup(each.value, "local_ssd_encryption_mode", null)
13041306
max_run_duration = lookup(each.value, "max_run_duration", null)
1307+
flex_start = lookup(each.value, "flex_start", null)
13051308
}
13061309

13071310
lifecycle {

modules/beta-autopilot-private-cluster/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ The [project factory](https://github.com/terraform-google-modules/terraform-goog
225225
#### Terraform and Plugins
226226

227227
- [Terraform](https://www.terraform.io/downloads.html) 1.3+
228-
- [Terraform Provider for GCP Beta][terraform-provider-google-beta] v6.38+
228+
- [Terraform Provider for GCP Beta][terraform-provider-google-beta] v6.39+
229229

230230
#### gcloud
231231

modules/beta-autopilot-private-cluster/versions.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ terraform {
2121
required_providers {
2222
google = {
2323
source = "hashicorp/google"
24-
version = ">= 6.38.0, < 7"
24+
version = ">= 6.39.0, < 7"
2525
}
2626
google-beta = {
2727
source = "hashicorp/google-beta"
28-
version = ">= 6.38.0, < 7"
28+
version = ">= 6.39.0, < 7"
2929
}
3030
kubernetes = {
3131
source = "hashicorp/kubernetes"

modules/beta-autopilot-public-cluster/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ The [project factory](https://github.com/terraform-google-modules/terraform-goog
211211
#### Terraform and Plugins
212212

213213
- [Terraform](https://www.terraform.io/downloads.html) 1.3+
214-
- [Terraform Provider for GCP Beta][terraform-provider-google-beta] v6.38+
214+
- [Terraform Provider for GCP Beta][terraform-provider-google-beta] v6.39+
215215

216216
#### gcloud
217217

modules/beta-autopilot-public-cluster/versions.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ terraform {
2121
required_providers {
2222
google = {
2323
source = "hashicorp/google"
24-
version = ">= 6.38.0, < 7"
24+
version = ">= 6.39.0, < 7"
2525
}
2626
google-beta = {
2727
source = "hashicorp/google-beta"
28-
version = ">= 6.38.0, < 7"
28+
version = ">= 6.39.0, < 7"
2929
}
3030
kubernetes = {
3131
source = "hashicorp/kubernetes"

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,7 @@ The node_pools variable takes the following parameters:
452452
| 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 |
453453
| 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 |
454454
| max_run_duration | The runtime of each node in the node pool in seconds, terminated by 's'. Example: "3600s". | null | Optional |
455+
| flex_start | Enables Flex Start provisioning model for the node pool | null | Optional |
455456

456457
## windows_node_pools variable
457458

@@ -482,7 +483,7 @@ The [project factory](https://github.com/terraform-google-modules/terraform-goog
482483
#### Terraform and Plugins
483484

484485
- [Terraform](https://www.terraform.io/downloads.html) 1.3+
485-
- [Terraform Provider for GCP Beta][terraform-provider-google-beta] v6.38+
486+
- [Terraform Provider for GCP Beta][terraform-provider-google-beta] v6.39+
486487

487488
#### gcloud
488489

0 commit comments

Comments
 (0)