Skip to content

Commit

Permalink
fix: missing var passthrough (#202)
Browse files Browse the repository at this point in the history
* fix: missing var passthrough

* terraform-docs: automated action

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
zacharyblasczyk and github-actions[bot] authored Jan 7, 2025
1 parent dd95dc0 commit 327a97c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ resources that lack official modules.
| <a name="input_deletion_protection"></a> [deletion\_protection](#input\_deletion\_protection) | If the instance should have deletion protection enabled. The database / Bucket can't be deleted when this value is set to `true`. | `bool` | `true` | no |
| <a name="input_disable_code_saving"></a> [disable\_code\_saving](#input\_disable\_code\_saving) | Boolean indicating if code saving is disabled | `bool` | `false` | no |
| <a name="input_domain_name"></a> [domain\_name](#input\_domain\_name) | Domain for accessing the Weights & Biases UI. | `string` | `null` | no |
| <a name="input_enable_gcs_fuse_csi_driver"></a> [enable\_gcs\_fuse\_csi\_driver](#input\_enable\_gcs\_fuse\_csi\_driver) | Enable GCS Fuse CSI driver for the GKE cluster. | `bool` | `false` | no |
| <a name="input_enable_helm_release"></a> [enable\_helm\_release](#input\_enable\_helm\_release) | Enable or disable applying and releasing Helm chart | `bool` | `true` | no |
| <a name="input_enable_private_gke_nodes"></a> [enable\_private\_gke\_nodes](#input\_enable\_private\_gke\_nodes) | Enable private nodes for the GKE cluster. When set to true, nodes will not have public IPs, and Cloud NAT with a static public IP will be used for egress traffic. Ensure sufficient quota for static IPs in the specified region. | `bool` | `false` | no |
| <a name="input_enable_stackdriver"></a> [enable\_stackdriver](#input\_enable\_stackdriver) | n/a | `bool` | `false` | no |
Expand Down
27 changes: 14 additions & 13 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -113,19 +113,20 @@ locals {
}

module "app_gke" {
source = "./modules/app_gke"
namespace = var.namespace
machine_type = local.gke_machine_type
network = local.network
subnetwork = local.subnetwork
service_account = module.service_accounts.service_account
create_workload_identity = var.create_workload_identity
deletion_protection = var.deletion_protection
depends_on = [module.project_factory_project_services]
max_node_count = local.max_node_count
min_node_count = local.min_node_count
labels = var.labels
enable_private_gke_nodes = var.enable_private_gke_nodes
source = "./modules/app_gke"
namespace = var.namespace
machine_type = local.gke_machine_type
network = local.network
subnetwork = local.subnetwork
service_account = module.service_accounts.service_account
enable_gcs_fuse_csi_driver = var.enable_gcs_fuse_csi_driver
create_workload_identity = var.create_workload_identity
deletion_protection = var.deletion_protection
depends_on = [module.project_factory_project_services]
max_node_count = local.max_node_count
min_node_count = local.min_node_count
labels = var.labels
enable_private_gke_nodes = var.enable_private_gke_nodes
}

module "cloud_nat" {
Expand Down
8 changes: 6 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,6 @@ variable "gke_machine_type" {
default = null
}


variable "gke_min_node_count" {
type = number
description = "Initial number of nodes for the GKE cluster, if gke_max_node_count is set, this is the minimum number of nodes. Defaults to null and value from deployment-size.tf is used"
Expand All @@ -277,6 +276,12 @@ variable "gke_max_node_count" {
default = null
}

variable "enable_gcs_fuse_csi_driver" {
type = bool
description = "Enable GCS Fuse CSI driver for the GKE cluster."
default = false
}

##########################################
# General Application #
##########################################
Expand Down Expand Up @@ -388,7 +393,6 @@ variable "create_workload_identity" {
default = false
}


variable "enable_stackdriver" {
type = bool
default = false
Expand Down

0 comments on commit 327a97c

Please sign in to comment.