Skip to content

Commit c84c606

Browse files
committed
feat: add support for flex start
Signed-off-by: drfaust92 <ilia.lazebnik@gmail.com>
1 parent 520979b commit c84c606

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
@@ -396,6 +396,7 @@ The node_pools variable takes the following parameters:
396396
| reservation_affinity_key | The label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify "compute.googleapis.com/reservation-name" as the key and specify the name of your reservation as its value. | | Optional |
397397
| 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 |
398398
| 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 |
399+
| flex_start | Enables Flex Start provisioning model for the node pool | | Optional |
399400

400401
## windows_node_pools variable
401402

@@ -422,7 +423,7 @@ The [project factory](https://github.com/terraform-google-modules/terraform-goog
422423
#### Terraform and Plugins
423424

424425
- [Terraform](https://www.terraform.io/downloads.html) 1.3+
425-
- [Terraform Provider for GCP][terraform-provider-google] v6.38+
426+
- [Terraform Provider for GCP][terraform-provider-google] v6.39+
426427

427428
#### gcloud
428429

autogen/main/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ The node_pools variable takes the following parameters:
283283
| reservation_affinity_key | The label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify "compute.googleapis.com/reservation-name" as the key and specify the name of your reservation as its value. | | Optional |
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 |
286+
| flex_start | Enables Flex Start provisioning model for the node pool | | Optional |
286287

287288
## windows_node_pools variable
288289

@@ -311,9 +312,9 @@ The [project factory](https://github.com/terraform-google-modules/terraform-goog
311312

312313
- [Terraform](https://www.terraform.io/downloads.html) 1.3+
313314
{% if beta_cluster %}
314-
- [Terraform Provider for GCP Beta][terraform-provider-google-beta] v6.38+
315+
- [Terraform Provider for GCP Beta][terraform-provider-google-beta] v6.39+
315316
{% else %}
316-
- [Terraform Provider for GCP][terraform-provider-google] v6.38+
317+
- [Terraform Provider for GCP][terraform-provider-google] v6.39+
317318
{% endif %}
318319

319320
#### gcloud

autogen/main/cluster.tf.tmpl

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

677677
local_ssd_encryption_mode = lookup(var.node_pools[0], "local_ssd_encryption_mode", null)
678+
flex_start = lookup(var.node_pools[0], "flex_start", null)
678679
}
679680
}
680681
{% endif %}
@@ -833,6 +834,7 @@ locals {
833834
"reservation_affinity_values",
834835
"secondary_boot_disk",
835836
"local_ssd_encryption_mode",
837+
"flex_start",
836838
]
837839
}
838840

@@ -1265,6 +1267,7 @@ resource "google_container_node_pool" "windows_pools" {
12651267
}
12661268

12671269
local_ssd_encryption_mode = lookup(each.value, "local_ssd_encryption_mode", null)
1270+
flex_start = lookup(each.value, "flex_start", null)
12681271
}
12691272

12701273
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
@@ -525,6 +525,7 @@ resource "google_container_cluster" "primary" {
525525
}
526526

527527
local_ssd_encryption_mode = lookup(var.node_pools[0], "local_ssd_encryption_mode", null)
528+
flex_start = lookup(var.node_pools[0], "flex_start", null)
528529
}
529530
}
530531

@@ -952,6 +953,7 @@ resource "google_container_node_pool" "pools" {
952953
}
953954

954955
local_ssd_encryption_mode = lookup(each.value, "local_ssd_encryption_mode", null)
956+
flex_start = lookup(each.value, "flex_start", null)
955957
}
956958

957959
lifecycle {
@@ -1273,6 +1275,7 @@ resource "google_container_node_pool" "windows_pools" {
12731275
}
12741276

12751277
local_ssd_encryption_mode = lookup(each.value, "local_ssd_encryption_mode", null)
1278+
flex_start = lookup(each.value, "flex_start", null)
12761279
}
12771280

12781281
lifecycle {

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

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

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

229229
#### gcloud
230230

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
@@ -210,7 +210,7 @@ The [project factory](https://github.com/terraform-google-modules/terraform-goog
210210
#### Terraform and Plugins
211211

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

215215
#### gcloud
216216

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
@@ -450,6 +450,7 @@ The node_pools variable takes the following parameters:
450450
| reservation_affinity_key | The label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify "compute.googleapis.com/reservation-name" as the key and specify the name of your reservation as its value. | | Optional |
451451
| 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 |
452452
| 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 |
453+
| flex_start | Enables Flex Start provisioning model for the node pool | | Optional |
453454

454455
## windows_node_pools variable
455456

@@ -476,7 +477,7 @@ The [project factory](https://github.com/terraform-google-modules/terraform-goog
476477
#### Terraform and Plugins
477478

478479
- [Terraform](https://www.terraform.io/downloads.html) 1.3+
479-
- [Terraform Provider for GCP Beta][terraform-provider-google-beta] v6.38+
480+
- [Terraform Provider for GCP Beta][terraform-provider-google-beta] v6.39+
480481

481482
#### gcloud
482483

0 commit comments

Comments
 (0)