From a3aae0c8aeed3b35006ce77db8c1e59da6ab3114 Mon Sep 17 00:00:00 2001 From: darox Date: Fri, 23 Feb 2024 10:52:47 +0100 Subject: [PATCH 1/2] Variables: add delete protection, pod_range Signed-off-by: darox --- main.tf | 1 + variables.tf | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/main.tf b/main.tf index 67bf196..28add73 100644 --- a/main.tf +++ b/main.tf @@ -49,6 +49,7 @@ module "main" { min_count = node_pool.min_nodes name = key preemptible = node_pool.preemptible + pod_range = node_pool.pod_range } ] diff --git a/variables.tf b/variables.tf index d8ee03e..2bf4c19 100644 --- a/variables.tf +++ b/variables.tf @@ -94,3 +94,11 @@ variable "vpc_id" { description = "The ID of the VPC in which to create the GKE cluster." type = string } + +variable "deletion_protection" { + description = "Whether to enable deletion protection for the GKE cluster." + type = bool + default = false +} + + From d11e1b1df79fe81de442f9e06d04d2442831f56f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 23 Feb 2024 09:56:11 +0000 Subject: [PATCH 2/2] terraform-docs: automated action --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 693e5b5..e7b1840 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,7 @@ This module depends on the following external tools: | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| | [additional\_ip\_range\_pods](#input\_additional\_ip\_range\_pods) | additional\_ip\_range\_pods | `list(any)` | `[]` | no | +| [deletion\_protection](#input\_deletion\_protection) | Whether to enable deletion protection for the GKE cluster. | `bool` | `false` | no | | [enable\_workload\_identity](#input\_enable\_workload\_identity) | Whether to enable workload identity. If enabled, 'netd' is deployed by GKE. | `bool` | `false` | no | | [kubernetes\_version](#input\_kubernetes\_version) | The version of Kubernetes/GKE to use. | `string` | n/a | yes | | [name](#input\_name) | The name of the GKE cluster. | `string` | n/a | yes |