Skip to content

Commit be1cb26

Browse files
committed
changes done in module gke-autopilot-cluster
1 parent cc15ca8 commit be1cb26

File tree

5 files changed

+282
-8
lines changed

5 files changed

+282
-8
lines changed

modules/gke-autopilot-cluster/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ For a module with a complete configuration of a Google Cloud Platform Kubernetes
5454
| pod\_security\_policy\_config | Configuration for the [PodSecurityPolicy](https://cloud.google.com/kubernetes-engine/docs/how-to/pod-security-policies) feature. | <pre>object({<br> enabled = bool<br> })</pre> | `null` | no |
5555
| private\_cluster\_config | Configuration for private clusters, clusters with private nodes. | <pre>object({<br> enable_private_nodes = optional(bool)<br> enable_private_endpoint = optional(bool)<br> master_ipv4_cidr_block = optional(string)<br> private_endpoint_subnetwork = optional(string)<br> master_global_access_config = optional(object({<br> enabled = optional(bool)<br> }))<br> })</pre> | <pre>{<br> "enable_private_endpoint": true,<br> "enable_private_nodes": true,<br> "master_global_access_config": {<br> "enabled": true<br> }<br>}</pre> | no |
5656
| private\_ipv6\_google\_access | The desired state of IPv6 access to Google Services. By default, no private IPv6 access to or from Google Services (all access will be via IPv4). | `string` | `null` | no |
57-
| project | The ID of the project in which the resource belongs. If it is not provided, the provider project is used. | `string` | n/a | yes |
57+
| project\_id | The ID of the project in which the resource belongs. If it is not provided, the provider project is used. | `string` | n/a | yes |
5858
| protect\_config | Enable/Disable Protect API features for the cluster. | <pre>object({<br> workload_config = object({<br> audit_mode = string<br> })<br> workload_vulnerability_mode = optional(string)<br> })</pre> | `null` | no |
5959
| release\_channel | The release channel of this cluster. Accepted values are `UNSPECIFIED`, `RAPID`, `REGULAR` and `STABLE`. Defaults to `REGULAR`. | <pre>object({<br> channel = optional(string)<br> })</pre> | <pre>{<br> "channel": "REGULAR"<br>}</pre> | no |
6060
| resource\_labels | The GCE resource labels (a map of key/value pairs) to be applied to the cluster. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective\_labels' for all of the labels present on the resource. | `map(string)` | `null` | no |

modules/gke-autopilot-cluster/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ resource "google_container_cluster" "main" {
1919

2020
name = var.name
2121
description = var.description
22-
project = var.project
22+
project = var.project_id
2323
resource_labels = var.resource_labels
2424
location = var.location
2525
node_locations = var.node_locations

0 commit comments

Comments
 (0)