Skip to content

Commit eac4ec5

Browse files
authored
Merge pull request #21 from gitpod-io/n/warm-pool-default
feat: enable warm pool by default for all new runners
2 parents 4da4f47 + baca4f7 commit eac4ec5

4 files changed

Lines changed: 9 additions & 20 deletions

File tree

examples/runner-with-networking/main.tf

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -168,14 +168,14 @@ module "runner" {
168168
proxy_vm_config = local.selected_profile.proxy_vm_config
169169
redis_config = local.selected_profile.redis_config
170170

171-
routable_subnet_name = local.runner_subnet_name
172-
create_cmek = var.create_cmek
173-
kms_key_name = var.kms_key_name
174-
mig_warm_pool_enabled = var.mig_warm_pool_enabled
175-
custom_images = var.custom_images
176-
enable_agents = var.enable_agents
177-
honeycomb_api_key = var.honeycomb_api_key
178-
labels = var.labels
171+
routable_subnet_name = local.runner_subnet_name
172+
create_cmek = var.create_cmek
173+
kms_key_name = var.kms_key_name
174+
175+
custom_images = var.custom_images
176+
enable_agents = var.enable_agents
177+
honeycomb_api_key = var.honeycomb_api_key
178+
labels = var.labels
179179

180180
depends_on = [module.networking, module.dns, module.self_signed_cert, module.certbot]
181181
}

examples/runner-with-networking/variables.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,6 @@ variable "create_cmek" {
158158
default = false
159159
}
160160

161-
variable "mig_warm_pool_enabled" {
162-
description = "Enable warm pool support using GCP Managed Instance Groups (MIGs) for faster environment startup"
163-
type = bool
164-
default = false
165-
}
166161

167162
variable "kms_key_name" {
168163
description = "The KMS key name for CMEK encryption of GCP resources. Only used when create_cmek = false. Ignored when create_cmek = true."

runner-vm.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ data "cloudinit_config" "runner" {
141141
AGENT_BUCKET_NAME = local.agent_bucket_name
142142
RUNNER_ASSETS_BUCKET_NAME = google_storage_bucket.runner_assets.name
143143
HONEYCOMB_API_KEY = var.honeycomb_api_key
144-
MIG_WARM_POOL_ENABLED = var.mig_warm_pool_enabled
144+
MIG_WARM_POOL_ENABLED = true
145145
# Proxy configuration
146146
HTTP_PROXY = local.http_proxy
147147
HTTPS_PROXY = local.https_proxy

variables.tf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,3 @@ variable "honeycomb_api_key" {
343343
default = ""
344344
sensitive = true
345345
}
346-
347-
variable "mig_warm_pool_enabled" {
348-
description = "Enable warm pool support using GCP Managed Instance Groups (MIGs) for faster environment startup"
349-
type = bool
350-
default = false
351-
}

0 commit comments

Comments
 (0)