Skip to content

Commit

Permalink
add nested virtualization, boot disk size, and pool size to boost (Go…
Browse files Browse the repository at this point in the history
  • Loading branch information
joelkattapuram authored Jun 4, 2024
1 parent 40e5c97 commit daa35c8
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
18 changes: 18 additions & 0 deletions mmv1/products/workstations/WorkstationConfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,24 @@ properties:
name: 'machineType'
description: |
The type of machine that boosted VM instances will use—for example, e2-standard-4. For more information about machine types that Cloud Workstations supports, see the list of available machine types https://cloud.google.com/workstations/docs/available-machine-types. Defaults to e2-standard-4.
- !ruby/object:Api::Type::Integer
name: 'bootDiskSizeGb'
immutable: true
description: |-
Size of the boot disk in GB. The minimum boot disk size is `30` GB. Defaults to `50` GB.
default_from_api: true
- !ruby/object:Api::Type::Boolean
name: 'enableNestedVirtualization'
description: |
Whether to enable nested virtualization on the Compute Engine VMs backing boosted Workstations.
See https://cloud.google.com/workstations/docs/reference/rest/v1beta/projects.locations.workstationClusters.workstationConfigs#GceInstance.FIELDS.enable_nested_virtualization
default_from_api: true
- !ruby/object:Api::Type::Integer
name: 'poolSize'
description: |-
Number of instances to pool for faster workstation boosting.
default_from_api: true
- !ruby/object:Api::Type::Array
name: 'accelerators'
description: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,11 @@ resource "google_workstations_workstation_config" "<%= ctx[:primary_resource_id]
}
}
boost_configs {
id = "boost-1"
machine_type = "e2-standard-2"
id = "boost-2"
machine_type = "n1-standard-2"
pool_size = 2
boot_disk_size_gb = 30
enable_nested_virtualization = true
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -541,8 +541,11 @@ func testAccWorkstationsWorkstationConfig_boost(context map[string]interface{})
}
}
boost_configs {
id = "boost-1"
machine_type = "e2-standard-2"
id = "boost-2"
machine_type = "n1-standard-2"
pool_size = 2
boot_disk_size_gb = 30
enable_nested_virtualization = true
}
}
}
Expand Down

0 comments on commit daa35c8

Please sign in to comment.