Skip to content

Commit

Permalink
chore: fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpanzella committed Aug 29, 2024
1 parent 1cc0b7a commit f9cfa7c
Show file tree
Hide file tree
Showing 21 changed files with 99 additions and 99 deletions.
24 changes: 12 additions & 12 deletions deployment-size.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,32 @@ locals {
cache = "6"
},
medium = {
db = "db-n1-highmem-4",
db = "db-n1-highmem-4",
min_node_count = 2,
max_node_count = 4,
node_instance = "n2-highmem-4"
cache = "6"
node_instance = "n2-highmem-4"
cache = "6"
},
large = {
db = "db-n1-highmem-8",
db = "db-n1-highmem-8",
min_node_count = 3,
max_node_count = 4,
node_instance = "n2-highmem-8"
cache = "13"
node_instance = "n2-highmem-8"
cache = "13"
},
xlarge = {
db = "db-n1-highmem-16",
db = "db-n1-highmem-16",
min_node_count = 3,
max_node_count = 5,
node_instance = "n2-highmem-8"
cache = "13"
node_instance = "n2-highmem-8"
cache = "13"
},
xxlarge = {
db = "db-n1-highmem-32",
db = "db-n1-highmem-32",
min_node_count = 3,
max_node_count = 6,
node_instance = "n2-highmem-16"
cache = "26"
node_instance = "n2-highmem-16"
cache = "26"
}
}
}
4 changes: 2 additions & 2 deletions examples/custom-tf-with-existing-resources/data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ data "google_compute_network" "default" {


data "google_compute_subnetwork" "default" {
name = var.subnetwork
name = var.subnetwork
}

data "google_container_cluster" "default" {
name = var.cluster_name
name = var.cluster_name
}

data "google_redis_instance" "default" {
Expand Down
4 changes: 2 additions & 2 deletions examples/custom-tf-with-existing-resources/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ locals {
url = "${local.url_prefix}://${local.fqdn}"
internal_app_port = 32543
create_bucket = var.bucket_name == ""
network = data.google_compute_network.default
subnetwork = data.google_compute_subnetwork.default
network = data.google_compute_network.default
subnetwork = data.google_compute_subnetwork.default
}

module "service_accounts" {
Expand Down
46 changes: 23 additions & 23 deletions examples/custom-tf-with-existing-resources/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,31 @@ variable "allowed_inbound_cidrs" {
variable "project_id" {
type = string
description = "Project ID"
default = ""
default = ""
}

variable "region" {
type = string
description = "Google region"
default = "us-central1"
default = "us-central1"
}

variable "zone" {
type = string
description = "Google zone"
default = "us-central1-b"
default = "us-central1-b"
}

variable "namespace" {
type = string
description = "Namespace prefix used for resources"
default = ""
default = ""
}

variable "domain_name" {
type = string
description = "Domain name for accessing the Weights & Biases UI."
default = ""
default = ""
}

variable "subdomain" {
Expand All @@ -48,9 +48,9 @@ variable "gke_machine_type" {
}

variable "license" {
type = string
type = string
default = ""
}
}

variable "wandb_version" {
description = "The version of Weights & Biases local to deploy."
Expand All @@ -65,7 +65,7 @@ variable "wandb_image" {
}

variable "database_env" {
nullable = false
nullable = false
type = object({
name = string
database_name = string
Expand All @@ -76,12 +76,12 @@ variable "database_env" {
})

default = {
name = "**"
username = "**"
password = "**"
database_name = "**"
private_ip_address = "**"
connection_string = "**" # "mysql://${username}:${password}@${private_ip_address}/${database_name}"
name = "**"
username = "**"
password = "**"
database_name = "**"
private_ip_address = "**"
connection_string = "**" # "mysql://${username}:${password}@${private_ip_address}/${database_name}"
}
}

Expand Down Expand Up @@ -159,36 +159,36 @@ variable "deletion_protection" {
}

variable "network" {
nullable = false
nullable = false
default = ""
description = "Pre-existing network self link"
type = string
}

variable "subnetwork" {
nullable = false
nullable = false
default = ""
description = "Pre-existing subnetwork self link"
type = string
}

variable "cluster_name" {
type = string
type = string
nullable = false
default = ""
default = ""
}

variable "redis_cluster_name" {
type = string
type = string
default = ""
}

variable "redis_env" {
nullable = false
nullable = false
type = object({
password = string
host = string
port = string
password = string
host = string
port = string
connection_string = string
})

Expand Down
2 changes: 1 addition & 1 deletion examples/custom-tf-with-vpc-sql/data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ data "google_compute_network" "network" {


data "google_compute_subnetwork" "subnetwork" {
name = var.subnetwork
name = var.subnetwork
}
4 changes: 2 additions & 2 deletions examples/custom-tf-with-vpc-sql/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ locals {
url = "${local.url_prefix}://${local.fqdn}"
internal_app_port = 32543
create_bucket = var.bucket_name == ""
network = data.google_compute_network.network
subnetwork = data.google_compute_subnetwork.subnetwork
network = data.google_compute_network.network
subnetwork = data.google_compute_subnetwork.subnetwork

}

Expand Down
30 changes: 15 additions & 15 deletions examples/custom-tf-with-vpc-sql/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,31 @@ variable "create_redis" {
variable "project_id" {
type = string
description = "Project ID"
default = ""
default = ""
}

variable "region" {
type = string
description = "Google region"
default = "us-central1"
default = "us-central1"
}

variable "zone" {
type = string
description = "Google zone"
default = "us-central1-b"
default = "us-central1-b"
}

variable "namespace" {
type = string
description = "Namespace prefix used for resources"
default = ""
default = ""
}

variable "domain_name" {
type = string
description = "Domain name for accessing the Weights & Biases UI."
default = ""
default = ""
}

variable "subdomain" {
Expand All @@ -54,7 +54,7 @@ variable "gke_machine_type" {
}

variable "license" {
type = string
type = string
default = ""
}

Expand All @@ -71,7 +71,7 @@ variable "wandb_image" {
}

variable "database_env" {
nullable = false
nullable = false
type = object({
name = string
database_name = string
Expand All @@ -82,12 +82,12 @@ variable "database_env" {
})

default = {
name = "**"
username = "**"
password = "**"
database_name = "**"
private_ip_address = "**"
connection_string = "**" # "mysql://${username}:${password}@${private_ip_address}/${database_name}"
name = "**"
username = "**"
password = "**"
database_name = "**"
private_ip_address = "**"
connection_string = "**" # "mysql://${username}:${password}@${private_ip_address}/${database_name}"
}
}

Expand Down Expand Up @@ -165,14 +165,14 @@ variable "deletion_protection" {
}

variable "network" {
nullable = false
nullable = false
default = ""
description = "Pre-existing network self link"
type = string
}

variable "subnetwork" {
nullable = false
nullable = false
default = ""
description = "Pre-existing subnetwork self link"
type = string
Expand Down
12 changes: 6 additions & 6 deletions examples/standard-tf/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ module "wandb" {
domain_name = var.domain_name
subdomain = var.subdomain

gke_machine_type = var.gke_machine_type
resource_limits = var.resource_limits
gke_machine_type = var.gke_machine_type
resource_limits = var.resource_limits
resource_requests = var.resource_requests
wandb_version = var.wandb_version
wandb_image = var.wandb_image
wandb_version = var.wandb_version
wandb_image = var.wandb_image

create_redis = var.create_redis
use_internal_queue = true
Expand All @@ -51,11 +51,11 @@ module "wandb" {

database_sort_buffer_size = var.database_sort_buffer_size
database_machine_type = var.database_machine_type
database_version = var.database_version
database_version = var.database_version

disable_code_saving = var.disable_code_saving
size = var.size
labels = var.labels
labels = var.labels



Expand Down
14 changes: 7 additions & 7 deletions examples/standard-tf/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,31 @@ variable "create_redis" {
variable "project_id" {
type = string
description = "Project ID"
default = ""
default = ""
}

variable "region" {
type = string
description = "Google region"
default = "us-central1"
default = "us-central1"
}

variable "zone" {
type = string
description = "Google zone"
default = "us-central1-b"
default = "us-central1-b"
}

variable "namespace" {
type = string
description = "Namespace prefix used for resources"
default = ""
default = ""
}

variable "domain_name" {
type = string
description = "Domain name for accessing the Weights & Biases UI."
default = ""
default = ""
}

variable "subdomain" {
Expand All @@ -55,9 +55,9 @@ variable "gke_machine_type" {
}

variable "license" {
type = string
type = string
default = ""
}
}

variable "wandb_version" {
description = "The version of Weights & Biases local to deploy."
Expand Down
6 changes: 3 additions & 3 deletions modules/app_gke/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ resource "random_pet" "node_pool" {
}

resource "google_container_node_pool" "default" {
name = "default-pool-${random_pet.node_pool.id}"
cluster = google_container_cluster.default.id
name = "default-pool-${random_pet.node_pool.id}"
cluster = google_container_cluster.default.id

autoscaling {
total_max_node_count = var.max_node_count
total_min_node_count = var.min_node_count
location_policy = "BALANCED"
location_policy = "BALANCED"
}

node_config {
Expand Down
Loading

0 comments on commit f9cfa7c

Please sign in to comment.