Skip to content

Commit 2c32408

Browse files
authored
feat(TPG>=6.14)!: promote enable_fqdn_network_policy to GA (#2225)
Signed-off-by: drfaust92 <[email protected]>
1 parent 2d59991 commit 2c32408

File tree

28 files changed

+57
-35
lines changed

28 files changed

+57
-35
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ Then perform the following commands on the root folder:
167167
| enable\_confidential\_nodes | An optional flag to enable confidential node config. | `bool` | `false` | no |
168168
| 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 |
169169
| 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 |
170+
| enable\_fqdn\_network\_policy | Enable FQDN Network Policies on the cluster | `bool` | `null` | no |
170171
| enable\_gcfs | Enable image streaming on cluster level. | `bool` | `false` | no |
171172
| enable\_identity\_service | (Optional) Enable the Identity Service component, which allows customers to use external identity providers with the K8S API. | `bool` | `false` | no |
172173
| 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 |
@@ -391,7 +392,7 @@ The [project factory](https://github.com/terraform-google-modules/terraform-goog
391392
- [kubectl](https://github.com/kubernetes/kubernetes/releases) 1.9.x
392393
#### Terraform and Plugins
393394
- [Terraform](https://www.terraform.io/downloads.html) 1.3+
394-
- [Terraform Provider for GCP][terraform-provider-google] v6.11+
395+
- [Terraform Provider for GCP][terraform-provider-google] v6.14+
395396
#### gcloud
396397
Some submodules use the [terraform-google-gcloud](https://github.com/terraform-google-modules/terraform-google-gcloud) module. By default, this module assumes you already have gcloud installed in your $PATH.
397398
See the [module](https://github.com/terraform-google-modules/terraform-google-gcloud#downloading) documentation for more information.

autogen/main/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,9 @@ The [project factory](https://github.com/terraform-google-modules/terraform-goog
288288
#### Terraform and Plugins
289289
- [Terraform](https://www.terraform.io/downloads.html) 1.3+
290290
{% if beta_cluster %}
291-
- [Terraform Provider for GCP Beta][terraform-provider-google-beta] v6.11+
291+
- [Terraform Provider for GCP Beta][terraform-provider-google-beta] v6.14+
292292
{% else %}
293-
- [Terraform Provider for GCP][terraform-provider-google] v6.11+
293+
- [Terraform Provider for GCP][terraform-provider-google] v6.14+
294294
{% endif %}
295295
#### gcloud
296296
Some submodules use the [terraform-google-gcloud](https://github.com/terraform-google-modules/terraform-google-gcloud) module. By default, this module assumes you already have gcloud installed in your $PATH.

autogen/main/cluster.tf.tmpl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,7 @@ resource "google_container_cluster" "primary" {
259259
}
260260
}
261261

262-
{% if beta_cluster %}
263262
enable_fqdn_network_policy = var.enable_fqdn_network_policy
264-
{% endif %}
265263
{% if autopilot_cluster %}
266264
enable_autopilot = true
267265
{% endif %}

autogen/main/variables.tf.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,13 +639,13 @@ variable "workload_config_audit_mode" {
639639
type = string
640640
default = "DISABLED"
641641
}
642+
{% endif %}
642643

643644
variable "enable_fqdn_network_policy" {
644645
type = bool
645646
description = "Enable FQDN Network Policies on the cluster"
646647
default = null
647648
}
648-
{% endif %}
649649

650650
variable "enable_cilium_clusterwide_network_policy" {
651651
type = bool

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.11.0, < 7"
27+
version = ">= 6.14.0, < 7"
2828
}
2929
google-beta = {
3030
source = "hashicorp/google-beta"
31-
version = ">= 6.11.0, < 7"
31+
version = ">= 6.14.0, < 7"
3232
}
3333
{% elif beta_cluster and autopilot_cluster %}
3434
required_providers {
3535
google = {
3636
source = "hashicorp/google"
37-
version = ">= 6.11.0, < 7"
37+
version = ">= 6.14.0, < 7"
3838
}
3939
google-beta = {
4040
source = "hashicorp/google-beta"
41-
version = ">= 6.11.0, < 7"
41+
version = ">= 6.14.0, < 7"
4242
}
4343
{% elif autopilot_cluster %}
4444
required_providers {
4545
google = {
4646
source = "hashicorp/google"
47-
version = ">= 6.11.0, < 7"
47+
version = ">= 6.14.0, < 7"
4848
}
4949
{% else %}
5050
required_providers {
5151
google = {
5252
source = "hashicorp/google"
53-
version = ">= 6.11.0, < 7"
53+
version = ">= 6.14.0, < 7"
5454
}
5555
{% endif %}
5656
kubernetes = {

cluster.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ resource "google_container_cluster" "primary" {
199199
}
200200
}
201201

202+
enable_fqdn_network_policy = var.enable_fqdn_network_policy
202203
dynamic "master_authorized_networks_config" {
203204
for_each = var.gcp_public_cidrs_access_enabled != null || length(var.master_authorized_networks) > 0 ? [true] : []
204205
content {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ The [project factory](https://github.com/terraform-google-modules/terraform-goog
216216
- [kubectl](https://github.com/kubernetes/kubernetes/releases) 1.9.x
217217
#### Terraform and Plugins
218218
- [Terraform](https://www.terraform.io/downloads.html) 1.3+
219-
- [Terraform Provider for GCP Beta][terraform-provider-google-beta] v6.11+
219+
- [Terraform Provider for GCP Beta][terraform-provider-google-beta] v6.14+
220220
#### gcloud
221221
Some submodules use the [terraform-google-gcloud](https://github.com/terraform-google-modules/terraform-google-gcloud) module. By default, this module assumes you already have gcloud installed in your $PATH.
222222
See the [module](https://github.com/terraform-google-modules/terraform-google-gcloud#downloading) documentation for more information.

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.11.0, < 7"
24+
version = ">= 6.14.0, < 7"
2525
}
2626
google-beta = {
2727
source = "hashicorp/google-beta"
28-
version = ">= 6.11.0, < 7"
28+
version = ">= 6.14.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
@@ -203,7 +203,7 @@ The [project factory](https://github.com/terraform-google-modules/terraform-goog
203203
- [kubectl](https://github.com/kubernetes/kubernetes/releases) 1.9.x
204204
#### Terraform and Plugins
205205
- [Terraform](https://www.terraform.io/downloads.html) 1.3+
206-
- [Terraform Provider for GCP Beta][terraform-provider-google-beta] v6.11+
206+
- [Terraform Provider for GCP Beta][terraform-provider-google-beta] v6.14+
207207
#### gcloud
208208
Some submodules use the [terraform-google-gcloud](https://github.com/terraform-google-modules/terraform-google-gcloud) module. By default, this module assumes you already have gcloud installed in your $PATH.
209209
See the [module](https://github.com/terraform-google-modules/terraform-google-gcloud#downloading) documentation for more information.

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.11.0, < 7"
24+
version = ">= 6.14.0, < 7"
2525
}
2626
google-beta = {
2727
source = "hashicorp/google-beta"
28-
version = ">= 6.11.0, < 7"
28+
version = ">= 6.14.0, < 7"
2929
}
3030
kubernetes = {
3131
source = "hashicorp/kubernetes"

0 commit comments

Comments
 (0)