From fc461187ca6d32edc27a60b9e5d2370afc88c0a3 Mon Sep 17 00:00:00 2001 From: drfaust92 Date: Fri, 27 Jun 2025 23:22:15 -0400 Subject: [PATCH] feat: add support for windows config Signed-off-by: drfaust92 --- README.md | 4 ++++ autogen/main/README.md | 4 ++++ autogen/main/cluster.tf.tmpl | 8 ++++++++ autogen/main/variables.tf.tmpl | 2 ++ cluster.tf | 16 ++++++++++++++++ .../beta-autopilot-private-cluster/variables.tf | 1 + .../beta-autopilot-public-cluster/variables.tf | 1 + .../README.md | 4 ++++ .../cluster.tf | 16 ++++++++++++++++ .../variables.tf | 2 ++ modules/beta-private-cluster/README.md | 4 ++++ modules/beta-private-cluster/cluster.tf | 16 ++++++++++++++++ modules/beta-private-cluster/variables.tf | 2 ++ .../beta-public-cluster-update-variant/README.md | 4 ++++ .../cluster.tf | 16 ++++++++++++++++ .../variables.tf | 2 ++ modules/beta-public-cluster/README.md | 4 ++++ modules/beta-public-cluster/cluster.tf | 16 ++++++++++++++++ modules/beta-public-cluster/variables.tf | 2 ++ modules/private-cluster-update-variant/README.md | 4 ++++ .../private-cluster-update-variant/cluster.tf | 16 ++++++++++++++++ .../private-cluster-update-variant/variables.tf | 2 ++ modules/private-cluster/README.md | 4 ++++ modules/private-cluster/cluster.tf | 16 ++++++++++++++++ modules/private-cluster/variables.tf | 2 ++ variables.tf | 2 ++ 26 files changed, 170 insertions(+) diff --git a/README.md b/README.md index 2361c54d42..7355fea4dc 100644 --- a/README.md +++ b/README.md @@ -401,6 +401,10 @@ The node_pools variable takes the following parameters: The windows_node_pools variable takes the same parameters as [node_pools](#node\_pools-variable) but is reserved for provisioning Windows based node pools only. This variable is introduced to satisfy a [specific requirement](https://cloud.google.com/kubernetes-engine/docs/how-to/creating-a-cluster-windows#create_a_cluster_and_node_pools) for the presence of at least one linux based node pool in the cluster before a windows based node pool can be created. +| Name | Description | Default | Requirement | +| --- | --- | --- | --- | +| windows_node_config_os_version | The Windows OS version to use for the windows node pool. Valid values are OS_VERSION_UNSPECIFIED, OS_VERSION_LTSC2019 and OS_VERSION_LTSC2022. | null | Optional | + ## Requirements diff --git a/autogen/main/README.md b/autogen/main/README.md index 43ecf81ee0..73b55d7c74 100644 --- a/autogen/main/README.md +++ b/autogen/main/README.md @@ -288,6 +288,10 @@ The node_pools variable takes the following parameters: The windows_node_pools variable takes the same parameters as [node_pools](#node\_pools-variable) but is reserved for provisioning Windows based node pools only. This variable is introduced to satisfy a [specific requirement](https://cloud.google.com/kubernetes-engine/docs/how-to/creating-a-cluster-windows#create_a_cluster_and_node_pools) for the presence of at least one linux based node pool in the cluster before a windows based node pool can be created. +| Name | Description | Default | Requirement | +| --- | --- | --- | --- | +| windows_node_config_os_version | The Windows OS version to use for the windows node pool. Valid values are OS_VERSION_UNSPECIFIED, OS_VERSION_LTSC2019 and OS_VERSION_LTSC2022. | null | Optional | + {% endif %} ## Requirements diff --git a/autogen/main/cluster.tf.tmpl b/autogen/main/cluster.tf.tmpl index 306302feea..a0a4f5406b 100644 --- a/autogen/main/cluster.tf.tmpl +++ b/autogen/main/cluster.tf.tmpl @@ -1213,6 +1213,14 @@ resource "google_container_node_pool" "windows_pools" { } {% endif %} + dynamic "windows_node_config" { + for_each = lookup(each.value, "windows_node_config_os_version", null) != null ? [true] : [] + + content { + osversion = lookup(each.value, "windows_node_config_os_version", null) + } + } + {% if i == 0 %} dynamic "linux_node_config" { for_each = length(merge( diff --git a/autogen/main/variables.tf.tmpl b/autogen/main/variables.tf.tmpl index d5a46d0cb8..791d692d5d 100644 --- a/autogen/main/variables.tf.tmpl +++ b/autogen/main/variables.tf.tmpl @@ -256,6 +256,7 @@ variable "node_pools_linux_node_configs_sysctls" { default-node-pool = {} } } + variable "node_pools_cgroup_mode" { type = map(string) description = "Map of strings containing cgroup node config by node-pool name" @@ -295,6 +296,7 @@ variable "enable_cost_allocation" { description = "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" default = false } + variable "resource_usage_export_dataset_id" { type = string description = "The ID of a BigQuery Dataset for using BigQuery as the destination of resource usage export." diff --git a/cluster.tf b/cluster.tf index a20934d6b5..5f742ab5db 100644 --- a/cluster.tf +++ b/cluster.tf @@ -902,6 +902,14 @@ resource "google_container_node_pool" "pools" { } } + dynamic "windows_node_config" { + for_each = lookup(each.value, "windows_node_config_os_version", null) != null ? [true] : [] + + content { + osversion = lookup(each.value, "windows_node_config_os_version", null) + } + } + dynamic "linux_node_config" { for_each = length(merge( local.node_pools_linux_node_configs_sysctls["all"], @@ -1256,6 +1264,14 @@ resource "google_container_node_pool" "windows_pools" { } } + dynamic "windows_node_config" { + for_each = lookup(each.value, "windows_node_config_os_version", null) != null ? [true] : [] + + content { + osversion = lookup(each.value, "windows_node_config_os_version", null) + } + } + boot_disk_kms_key = lookup(each.value, "boot_disk_kms_key", "") storage_pools = lookup(each.value, "storage_pools", null) != null ? [each.value.storage_pools] : [] diff --git a/modules/beta-autopilot-private-cluster/variables.tf b/modules/beta-autopilot-private-cluster/variables.tf index d95e31d2a7..48ce577684 100644 --- a/modules/beta-autopilot-private-cluster/variables.tf +++ b/modules/beta-autopilot-private-cluster/variables.tf @@ -182,6 +182,7 @@ variable "enable_cost_allocation" { description = "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" default = false } + variable "resource_usage_export_dataset_id" { type = string description = "The ID of a BigQuery Dataset for using BigQuery as the destination of resource usage export." diff --git a/modules/beta-autopilot-public-cluster/variables.tf b/modules/beta-autopilot-public-cluster/variables.tf index 5f861cb692..16b0b48619 100644 --- a/modules/beta-autopilot-public-cluster/variables.tf +++ b/modules/beta-autopilot-public-cluster/variables.tf @@ -182,6 +182,7 @@ variable "enable_cost_allocation" { description = "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" default = false } + variable "resource_usage_export_dataset_id" { type = string description = "The ID of a BigQuery Dataset for using BigQuery as the destination of resource usage export." diff --git a/modules/beta-private-cluster-update-variant/README.md b/modules/beta-private-cluster-update-variant/README.md index cebd4a0f15..c08543393a 100644 --- a/modules/beta-private-cluster-update-variant/README.md +++ b/modules/beta-private-cluster-update-variant/README.md @@ -455,6 +455,10 @@ The node_pools variable takes the following parameters: The windows_node_pools variable takes the same parameters as [node_pools](#node\_pools-variable) but is reserved for provisioning Windows based node pools only. This variable is introduced to satisfy a [specific requirement](https://cloud.google.com/kubernetes-engine/docs/how-to/creating-a-cluster-windows#create_a_cluster_and_node_pools) for the presence of at least one linux based node pool in the cluster before a windows based node pool can be created. +| Name | Description | Default | Requirement | +| --- | --- | --- | --- | +| windows_node_config_os_version | The Windows OS version to use for the windows node pool. Valid values are OS_VERSION_UNSPECIFIED, OS_VERSION_LTSC2019 and OS_VERSION_LTSC2022. | null | Optional | + ## Requirements diff --git a/modules/beta-private-cluster-update-variant/cluster.tf b/modules/beta-private-cluster-update-variant/cluster.tf index 1f1cce0b6d..1d1a9453e6 100644 --- a/modules/beta-private-cluster-update-variant/cluster.tf +++ b/modules/beta-private-cluster-update-variant/cluster.tf @@ -1065,6 +1065,14 @@ resource "google_container_node_pool" "pools" { } } + dynamic "windows_node_config" { + for_each = lookup(each.value, "windows_node_config_os_version", null) != null ? [true] : [] + + content { + osversion = lookup(each.value, "windows_node_config_os_version", null) + } + } + dynamic "linux_node_config" { for_each = length(merge( local.node_pools_linux_node_configs_sysctls["all"], @@ -1433,6 +1441,14 @@ resource "google_container_node_pool" "windows_pools" { } } + dynamic "windows_node_config" { + for_each = lookup(each.value, "windows_node_config_os_version", null) != null ? [true] : [] + + content { + osversion = lookup(each.value, "windows_node_config_os_version", null) + } + } + boot_disk_kms_key = lookup(each.value, "boot_disk_kms_key", "") storage_pools = lookup(each.value, "storage_pools", null) != null ? [each.value.storage_pools] : [] diff --git a/modules/beta-private-cluster-update-variant/variables.tf b/modules/beta-private-cluster-update-variant/variables.tf index 91915970a6..6036f13f3c 100644 --- a/modules/beta-private-cluster-update-variant/variables.tf +++ b/modules/beta-private-cluster-update-variant/variables.tf @@ -236,6 +236,7 @@ variable "node_pools_linux_node_configs_sysctls" { default-node-pool = {} } } + variable "node_pools_cgroup_mode" { type = map(string) description = "Map of strings containing cgroup node config by node-pool name" @@ -274,6 +275,7 @@ variable "enable_cost_allocation" { description = "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" default = false } + variable "resource_usage_export_dataset_id" { type = string description = "The ID of a BigQuery Dataset for using BigQuery as the destination of resource usage export." diff --git a/modules/beta-private-cluster/README.md b/modules/beta-private-cluster/README.md index cea37bce42..b4c56953a9 100644 --- a/modules/beta-private-cluster/README.md +++ b/modules/beta-private-cluster/README.md @@ -433,6 +433,10 @@ The node_pools variable takes the following parameters: The windows_node_pools variable takes the same parameters as [node_pools](#node\_pools-variable) but is reserved for provisioning Windows based node pools only. This variable is introduced to satisfy a [specific requirement](https://cloud.google.com/kubernetes-engine/docs/how-to/creating-a-cluster-windows#create_a_cluster_and_node_pools) for the presence of at least one linux based node pool in the cluster before a windows based node pool can be created. +| Name | Description | Default | Requirement | +| --- | --- | --- | --- | +| windows_node_config_os_version | The Windows OS version to use for the windows node pool. Valid values are OS_VERSION_UNSPECIFIED, OS_VERSION_LTSC2019 and OS_VERSION_LTSC2022. | null | Optional | + ## Requirements diff --git a/modules/beta-private-cluster/cluster.tf b/modules/beta-private-cluster/cluster.tf index 074a70b563..9d4635ea91 100644 --- a/modules/beta-private-cluster/cluster.tf +++ b/modules/beta-private-cluster/cluster.tf @@ -983,6 +983,14 @@ resource "google_container_node_pool" "pools" { } } + dynamic "windows_node_config" { + for_each = lookup(each.value, "windows_node_config_os_version", null) != null ? [true] : [] + + content { + osversion = lookup(each.value, "windows_node_config_os_version", null) + } + } + dynamic "linux_node_config" { for_each = length(merge( local.node_pools_linux_node_configs_sysctls["all"], @@ -1350,6 +1358,14 @@ resource "google_container_node_pool" "windows_pools" { } } + dynamic "windows_node_config" { + for_each = lookup(each.value, "windows_node_config_os_version", null) != null ? [true] : [] + + content { + osversion = lookup(each.value, "windows_node_config_os_version", null) + } + } + boot_disk_kms_key = lookup(each.value, "boot_disk_kms_key", "") storage_pools = lookup(each.value, "storage_pools", null) != null ? [each.value.storage_pools] : [] diff --git a/modules/beta-private-cluster/variables.tf b/modules/beta-private-cluster/variables.tf index 91915970a6..6036f13f3c 100644 --- a/modules/beta-private-cluster/variables.tf +++ b/modules/beta-private-cluster/variables.tf @@ -236,6 +236,7 @@ variable "node_pools_linux_node_configs_sysctls" { default-node-pool = {} } } + variable "node_pools_cgroup_mode" { type = map(string) description = "Map of strings containing cgroup node config by node-pool name" @@ -274,6 +275,7 @@ variable "enable_cost_allocation" { description = "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" default = false } + variable "resource_usage_export_dataset_id" { type = string description = "The ID of a BigQuery Dataset for using BigQuery as the destination of resource usage export." diff --git a/modules/beta-public-cluster-update-variant/README.md b/modules/beta-public-cluster-update-variant/README.md index 31655f6af7..72a4c1f13c 100644 --- a/modules/beta-public-cluster-update-variant/README.md +++ b/modules/beta-public-cluster-update-variant/README.md @@ -442,6 +442,10 @@ The node_pools variable takes the following parameters: The windows_node_pools variable takes the same parameters as [node_pools](#node\_pools-variable) but is reserved for provisioning Windows based node pools only. This variable is introduced to satisfy a [specific requirement](https://cloud.google.com/kubernetes-engine/docs/how-to/creating-a-cluster-windows#create_a_cluster_and_node_pools) for the presence of at least one linux based node pool in the cluster before a windows based node pool can be created. +| Name | Description | Default | Requirement | +| --- | --- | --- | --- | +| windows_node_config_os_version | The Windows OS version to use for the windows node pool. Valid values are OS_VERSION_UNSPECIFIED, OS_VERSION_LTSC2019 and OS_VERSION_LTSC2022. | null | Optional | + ## Requirements diff --git a/modules/beta-public-cluster-update-variant/cluster.tf b/modules/beta-public-cluster-update-variant/cluster.tf index 29d16c667c..8b2ca890a4 100644 --- a/modules/beta-public-cluster-update-variant/cluster.tf +++ b/modules/beta-public-cluster-update-variant/cluster.tf @@ -1043,6 +1043,14 @@ resource "google_container_node_pool" "pools" { } } + dynamic "windows_node_config" { + for_each = lookup(each.value, "windows_node_config_os_version", null) != null ? [true] : [] + + content { + osversion = lookup(each.value, "windows_node_config_os_version", null) + } + } + dynamic "linux_node_config" { for_each = length(merge( local.node_pools_linux_node_configs_sysctls["all"], @@ -1411,6 +1419,14 @@ resource "google_container_node_pool" "windows_pools" { } } + dynamic "windows_node_config" { + for_each = lookup(each.value, "windows_node_config_os_version", null) != null ? [true] : [] + + content { + osversion = lookup(each.value, "windows_node_config_os_version", null) + } + } + boot_disk_kms_key = lookup(each.value, "boot_disk_kms_key", "") storage_pools = lookup(each.value, "storage_pools", null) != null ? [each.value.storage_pools] : [] diff --git a/modules/beta-public-cluster-update-variant/variables.tf b/modules/beta-public-cluster-update-variant/variables.tf index d626499f6a..a2323b0ec8 100644 --- a/modules/beta-public-cluster-update-variant/variables.tf +++ b/modules/beta-public-cluster-update-variant/variables.tf @@ -236,6 +236,7 @@ variable "node_pools_linux_node_configs_sysctls" { default-node-pool = {} } } + variable "node_pools_cgroup_mode" { type = map(string) description = "Map of strings containing cgroup node config by node-pool name" @@ -274,6 +275,7 @@ variable "enable_cost_allocation" { description = "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" default = false } + variable "resource_usage_export_dataset_id" { type = string description = "The ID of a BigQuery Dataset for using BigQuery as the destination of resource usage export." diff --git a/modules/beta-public-cluster/README.md b/modules/beta-public-cluster/README.md index 36653306cf..4df4a85134 100644 --- a/modules/beta-public-cluster/README.md +++ b/modules/beta-public-cluster/README.md @@ -420,6 +420,10 @@ The node_pools variable takes the following parameters: The windows_node_pools variable takes the same parameters as [node_pools](#node\_pools-variable) but is reserved for provisioning Windows based node pools only. This variable is introduced to satisfy a [specific requirement](https://cloud.google.com/kubernetes-engine/docs/how-to/creating-a-cluster-windows#create_a_cluster_and_node_pools) for the presence of at least one linux based node pool in the cluster before a windows based node pool can be created. +| Name | Description | Default | Requirement | +| --- | --- | --- | --- | +| windows_node_config_os_version | The Windows OS version to use for the windows node pool. Valid values are OS_VERSION_UNSPECIFIED, OS_VERSION_LTSC2019 and OS_VERSION_LTSC2022. | null | Optional | + ## Requirements diff --git a/modules/beta-public-cluster/cluster.tf b/modules/beta-public-cluster/cluster.tf index b9149a9808..8c01d303a8 100644 --- a/modules/beta-public-cluster/cluster.tf +++ b/modules/beta-public-cluster/cluster.tf @@ -961,6 +961,14 @@ resource "google_container_node_pool" "pools" { } } + dynamic "windows_node_config" { + for_each = lookup(each.value, "windows_node_config_os_version", null) != null ? [true] : [] + + content { + osversion = lookup(each.value, "windows_node_config_os_version", null) + } + } + dynamic "linux_node_config" { for_each = length(merge( local.node_pools_linux_node_configs_sysctls["all"], @@ -1328,6 +1336,14 @@ resource "google_container_node_pool" "windows_pools" { } } + dynamic "windows_node_config" { + for_each = lookup(each.value, "windows_node_config_os_version", null) != null ? [true] : [] + + content { + osversion = lookup(each.value, "windows_node_config_os_version", null) + } + } + boot_disk_kms_key = lookup(each.value, "boot_disk_kms_key", "") storage_pools = lookup(each.value, "storage_pools", null) != null ? [each.value.storage_pools] : [] diff --git a/modules/beta-public-cluster/variables.tf b/modules/beta-public-cluster/variables.tf index d626499f6a..a2323b0ec8 100644 --- a/modules/beta-public-cluster/variables.tf +++ b/modules/beta-public-cluster/variables.tf @@ -236,6 +236,7 @@ variable "node_pools_linux_node_configs_sysctls" { default-node-pool = {} } } + variable "node_pools_cgroup_mode" { type = map(string) description = "Map of strings containing cgroup node config by node-pool name" @@ -274,6 +275,7 @@ variable "enable_cost_allocation" { description = "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" default = false } + variable "resource_usage_export_dataset_id" { type = string description = "The ID of a BigQuery Dataset for using BigQuery as the destination of resource usage export." diff --git a/modules/private-cluster-update-variant/README.md b/modules/private-cluster-update-variant/README.md index fbbd38dea3..aba3345ef8 100644 --- a/modules/private-cluster-update-variant/README.md +++ b/modules/private-cluster-update-variant/README.md @@ -436,6 +436,10 @@ The node_pools variable takes the following parameters: The windows_node_pools variable takes the same parameters as [node_pools](#node\_pools-variable) but is reserved for provisioning Windows based node pools only. This variable is introduced to satisfy a [specific requirement](https://cloud.google.com/kubernetes-engine/docs/how-to/creating-a-cluster-windows#create_a_cluster_and_node_pools) for the presence of at least one linux based node pool in the cluster before a windows based node pool can be created. +| Name | Description | Default | Requirement | +| --- | --- | --- | --- | +| windows_node_config_os_version | The Windows OS version to use for the windows node pool. Valid values are OS_VERSION_UNSPECIFIED, OS_VERSION_LTSC2019 and OS_VERSION_LTSC2022. | null | Optional | + ## Requirements diff --git a/modules/private-cluster-update-variant/cluster.tf b/modules/private-cluster-update-variant/cluster.tf index a3ce4e02c0..ee3a909b28 100644 --- a/modules/private-cluster-update-variant/cluster.tf +++ b/modules/private-cluster-update-variant/cluster.tf @@ -1005,6 +1005,14 @@ resource "google_container_node_pool" "pools" { } } + dynamic "windows_node_config" { + for_each = lookup(each.value, "windows_node_config_os_version", null) != null ? [true] : [] + + content { + osversion = lookup(each.value, "windows_node_config_os_version", null) + } + } + dynamic "linux_node_config" { for_each = length(merge( local.node_pools_linux_node_configs_sysctls["all"], @@ -1360,6 +1368,14 @@ resource "google_container_node_pool" "windows_pools" { } } + dynamic "windows_node_config" { + for_each = lookup(each.value, "windows_node_config_os_version", null) != null ? [true] : [] + + content { + osversion = lookup(each.value, "windows_node_config_os_version", null) + } + } + boot_disk_kms_key = lookup(each.value, "boot_disk_kms_key", "") storage_pools = lookup(each.value, "storage_pools", null) != null ? [each.value.storage_pools] : [] diff --git a/modules/private-cluster-update-variant/variables.tf b/modules/private-cluster-update-variant/variables.tf index a06456b25a..0ad249e4ef 100644 --- a/modules/private-cluster-update-variant/variables.tf +++ b/modules/private-cluster-update-variant/variables.tf @@ -236,6 +236,7 @@ variable "node_pools_linux_node_configs_sysctls" { default-node-pool = {} } } + variable "node_pools_cgroup_mode" { type = map(string) description = "Map of strings containing cgroup node config by node-pool name" @@ -274,6 +275,7 @@ variable "enable_cost_allocation" { description = "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" default = false } + variable "resource_usage_export_dataset_id" { type = string description = "The ID of a BigQuery Dataset for using BigQuery as the destination of resource usage export." diff --git a/modules/private-cluster/README.md b/modules/private-cluster/README.md index 3c09aa397a..65041985b6 100644 --- a/modules/private-cluster/README.md +++ b/modules/private-cluster/README.md @@ -414,6 +414,10 @@ The node_pools variable takes the following parameters: The windows_node_pools variable takes the same parameters as [node_pools](#node\_pools-variable) but is reserved for provisioning Windows based node pools only. This variable is introduced to satisfy a [specific requirement](https://cloud.google.com/kubernetes-engine/docs/how-to/creating-a-cluster-windows#create_a_cluster_and_node_pools) for the presence of at least one linux based node pool in the cluster before a windows based node pool can be created. +| Name | Description | Default | Requirement | +| --- | --- | --- | --- | +| windows_node_config_os_version | The Windows OS version to use for the windows node pool. Valid values are OS_VERSION_UNSPECIFIED, OS_VERSION_LTSC2019 and OS_VERSION_LTSC2022. | null | Optional | + ## Requirements diff --git a/modules/private-cluster/cluster.tf b/modules/private-cluster/cluster.tf index 755f215276..443daea9cf 100644 --- a/modules/private-cluster/cluster.tf +++ b/modules/private-cluster/cluster.tf @@ -924,6 +924,14 @@ resource "google_container_node_pool" "pools" { } } + dynamic "windows_node_config" { + for_each = lookup(each.value, "windows_node_config_os_version", null) != null ? [true] : [] + + content { + osversion = lookup(each.value, "windows_node_config_os_version", null) + } + } + dynamic "linux_node_config" { for_each = length(merge( local.node_pools_linux_node_configs_sysctls["all"], @@ -1278,6 +1286,14 @@ resource "google_container_node_pool" "windows_pools" { } } + dynamic "windows_node_config" { + for_each = lookup(each.value, "windows_node_config_os_version", null) != null ? [true] : [] + + content { + osversion = lookup(each.value, "windows_node_config_os_version", null) + } + } + boot_disk_kms_key = lookup(each.value, "boot_disk_kms_key", "") storage_pools = lookup(each.value, "storage_pools", null) != null ? [each.value.storage_pools] : [] diff --git a/modules/private-cluster/variables.tf b/modules/private-cluster/variables.tf index a06456b25a..0ad249e4ef 100644 --- a/modules/private-cluster/variables.tf +++ b/modules/private-cluster/variables.tf @@ -236,6 +236,7 @@ variable "node_pools_linux_node_configs_sysctls" { default-node-pool = {} } } + variable "node_pools_cgroup_mode" { type = map(string) description = "Map of strings containing cgroup node config by node-pool name" @@ -274,6 +275,7 @@ variable "enable_cost_allocation" { description = "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" default = false } + variable "resource_usage_export_dataset_id" { type = string description = "The ID of a BigQuery Dataset for using BigQuery as the destination of resource usage export." diff --git a/variables.tf b/variables.tf index 8c31c7a5e5..e8baee0765 100644 --- a/variables.tf +++ b/variables.tf @@ -236,6 +236,7 @@ variable "node_pools_linux_node_configs_sysctls" { default-node-pool = {} } } + variable "node_pools_cgroup_mode" { type = map(string) description = "Map of strings containing cgroup node config by node-pool name" @@ -274,6 +275,7 @@ variable "enable_cost_allocation" { description = "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" default = false } + variable "resource_usage_export_dataset_id" { type = string description = "The ID of a BigQuery Dataset for using BigQuery as the destination of resource usage export."