Skip to content

Commit eb9b0be

Browse files
authored
feat(TPG>=6.5.0)!: promote enable_gcfs to GA (terraform-google-modules#2178)
1 parent 3122b9d commit eb9b0be

File tree

23 files changed

+83
-55
lines changed

23 files changed

+83
-55
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ Then perform the following commands on the root folder:
166166
| enable\_confidential\_nodes | An optional flag to enable confidential node config. | `bool` | `false` | no |
167167
| enable\_cost\_allocation | Enables Cost Allocation Feature and the cluster name and namespace of your GKE workloads appear in the labels field of the billing export to BigQuery | `bool` | `false` | no |
168168
| enable\_default\_node\_pools\_metadata | Whether to enable the default node pools metadata key-value pairs such as `cluster_name` and `node_pool` | `bool` | `true` | no |
169+
| enable\_gcfs | Enable image streaming on cluster level. | `bool` | `false` | no |
169170
| enable\_identity\_service | (Optional) Enable the Identity Service component, which allows customers to use external identity providers with the K8S API. | `bool` | `false` | no |
170171
| enable\_intranode\_visibility | Whether Intra-node visibility is enabled for this cluster. This makes same node pod to pod traffic visible for VPC network | `bool` | `false` | no |
171172
| enable\_kubernetes\_alpha | Whether to enable Kubernetes Alpha features for this cluster. Note that when this option is enabled, the cluster cannot be upgraded and will be automatically deleted after 30 days. | `bool` | `false` | no |

autogen/main/cluster.tf.tmpl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -698,11 +698,9 @@ resource "google_container_cluster" "primary" {
698698
}
699699
{% endif %}
700700
{% if autopilot_cluster != true %}
701-
{% if beta_cluster %}
702701
gcfs_config {
703702
enabled = var.enable_gcfs
704703
}
705-
{% endif %}
706704
insecure_kubelet_readonly_port_enabled = var.insecure_kubelet_readonly_port_enabled != null ? upper(tostring(var.insecure_kubelet_readonly_port_enabled)) : null
707705
{% endif %}
708706
}

autogen/main/variables.tf.tmpl

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,17 @@ variable "enable_confidential_nodes" {
614614
default = false
615615
}
616616

617+
variable "enable_gcfs" {
618+
type = bool
619+
description = "Enable image streaming on cluster level."
620+
{% if autopilot_cluster != true %}
621+
default = false
622+
{% endif %}
623+
{% if autopilot_cluster %}
624+
default = true
625+
{% endif %}
626+
}
627+
617628
variable "enable_secret_manager_addon" {
618629
description = "Enable the Secret Manager add-on for this cluster"
619630
type = bool
@@ -987,17 +998,6 @@ variable "sandbox_enabled" {
987998
default = false
988999
}
9891000
{% endif %}
990-
991-
variable "enable_gcfs" {
992-
type = bool
993-
description = "(Beta) Enable image streaming on cluster level."
994-
{% if autopilot_cluster != true %}
995-
default = false
996-
{% endif %}
997-
{% if autopilot_cluster %}
998-
default = true
999-
{% endif %}
1000-
}
10011001
{% endif %}
10021002

10031003
{% if autopilot_cluster != true %}

cluster.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,9 @@ resource "google_container_cluster" "primary" {
528528

529529
node_pool_defaults {
530530
node_config_defaults {
531+
gcfs_config {
532+
enabled = var.enable_gcfs
533+
}
531534
insecure_kubelet_readonly_port_enabled = var.insecure_kubelet_readonly_port_enabled != null ? upper(tostring(var.insecure_kubelet_readonly_port_enabled)) : null
532535
}
533536
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Then perform the following commands on the root folder:
9393
| enable\_confidential\_nodes | An optional flag to enable confidential node config. | `bool` | `false` | no |
9494
| enable\_cost\_allocation | Enables Cost Allocation Feature and the cluster name and namespace of your GKE workloads appear in the labels field of the billing export to BigQuery | `bool` | `false` | no |
9595
| enable\_fqdn\_network\_policy | Enable FQDN Network Policies on the cluster | `bool` | `null` | no |
96-
| enable\_gcfs | (Beta) Enable image streaming on cluster level. | `bool` | `true` | no |
96+
| enable\_gcfs | Enable image streaming on cluster level. | `bool` | `true` | no |
9797
| enable\_l4\_ilb\_subsetting | Enable L4 ILB Subsetting on the cluster | `bool` | `false` | no |
9898
| enable\_network\_egress\_export | Whether to enable network egress metering for this cluster. If enabled, a daemonset will be created in the cluster to meter network egress traffic. | `bool` | `false` | no |
9999
| enable\_private\_endpoint | Whether the master's internal IP address is used as the cluster endpoint | `bool` | `false` | no |

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,12 @@ variable "enable_confidential_nodes" {
382382
default = false
383383
}
384384

385+
variable "enable_gcfs" {
386+
type = bool
387+
description = "Enable image streaming on cluster level."
388+
default = true
389+
}
390+
385391
variable "enable_secret_manager_addon" {
386392
description = "Enable the Secret Manager add-on for this cluster"
387393
type = bool
@@ -572,12 +578,6 @@ variable "enable_l4_ilb_subsetting" {
572578
default = false
573579
}
574580

575-
variable "enable_gcfs" {
576-
type = bool
577-
description = "(Beta) Enable image streaming on cluster level."
578-
default = true
579-
}
580-
581581
variable "allow_net_admin" {
582582
description = "(Optional) Enable NET_ADMIN for the cluster."
583583
type = bool

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Then perform the following commands on the root folder:
8686
| enable\_confidential\_nodes | An optional flag to enable confidential node config. | `bool` | `false` | no |
8787
| enable\_cost\_allocation | Enables Cost Allocation Feature and the cluster name and namespace of your GKE workloads appear in the labels field of the billing export to BigQuery | `bool` | `false` | no |
8888
| enable\_fqdn\_network\_policy | Enable FQDN Network Policies on the cluster | `bool` | `null` | no |
89-
| enable\_gcfs | (Beta) Enable image streaming on cluster level. | `bool` | `true` | no |
89+
| enable\_gcfs | Enable image streaming on cluster level. | `bool` | `true` | no |
9090
| enable\_l4\_ilb\_subsetting | Enable L4 ILB Subsetting on the cluster | `bool` | `false` | no |
9191
| enable\_network\_egress\_export | Whether to enable network egress metering for this cluster. If enabled, a daemonset will be created in the cluster to meter network egress traffic. | `bool` | `false` | no |
9292
| enable\_resource\_consumption\_export | Whether to enable resource consumption metering on this cluster. When enabled, a table will be created in the resource export BigQuery dataset to store resource consumption data. The resulting table can be joined with the resource usage table or with BigQuery billing export. | `bool` | `true` | no |

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,12 @@ variable "enable_confidential_nodes" {
346346
default = false
347347
}
348348

349+
variable "enable_gcfs" {
350+
type = bool
351+
description = "Enable image streaming on cluster level."
352+
default = true
353+
}
354+
349355
variable "enable_secret_manager_addon" {
350356
description = "Enable the Secret Manager add-on for this cluster"
351357
type = bool
@@ -536,12 +542,6 @@ variable "enable_l4_ilb_subsetting" {
536542
default = false
537543
}
538544

539-
variable "enable_gcfs" {
540-
type = bool
541-
description = "(Beta) Enable image streaming on cluster level."
542-
default = true
543-
}
544-
545545
variable "allow_net_admin" {
546546
description = "(Optional) Enable NET_ADMIN for the cluster."
547547
type = bool

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ Then perform the following commands on the root folder:
203203
| enable\_cost\_allocation | Enables Cost Allocation Feature and the cluster name and namespace of your GKE workloads appear in the labels field of the billing export to BigQuery | `bool` | `false` | no |
204204
| enable\_default\_node\_pools\_metadata | Whether to enable the default node pools metadata key-value pairs such as `cluster_name` and `node_pool` | `bool` | `true` | no |
205205
| enable\_fqdn\_network\_policy | Enable FQDN Network Policies on the cluster | `bool` | `null` | no |
206-
| enable\_gcfs | (Beta) Enable image streaming on cluster level. | `bool` | `false` | no |
206+
| enable\_gcfs | Enable image streaming on cluster level. | `bool` | `false` | no |
207207
| enable\_identity\_service | (Optional) Enable the Identity Service component, which allows customers to use external identity providers with the K8S API. | `bool` | `false` | no |
208208
| enable\_intranode\_visibility | Whether Intra-node visibility is enabled for this cluster. This makes same node pod to pod traffic visible for VPC network | `bool` | `false` | no |
209209
| enable\_kubernetes\_alpha | Whether to enable Kubernetes Alpha features for this cluster. Note that when this option is enabled, the cluster cannot be upgraded and will be automatically deleted after 30 days. | `bool` | `false` | no |

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,12 @@ variable "enable_confidential_nodes" {
588588
default = false
589589
}
590590

591+
variable "enable_gcfs" {
592+
type = bool
593+
description = "Enable image streaming on cluster level."
594+
default = false
595+
}
596+
591597
variable "enable_secret_manager_addon" {
592598
description = "Enable the Secret Manager add-on for this cluster"
593599
type = bool
@@ -943,12 +949,6 @@ variable "sandbox_enabled" {
943949
default = false
944950
}
945951

946-
variable "enable_gcfs" {
947-
type = bool
948-
description = "(Beta) Enable image streaming on cluster level."
949-
default = false
950-
}
951-
952952
variable "enable_identity_service" {
953953
type = bool
954954
description = "(Optional) Enable the Identity Service component, which allows customers to use external identity providers with the K8S API."

0 commit comments

Comments
 (0)