Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
bcreddy-gcp committed Jan 9, 2025
2 parents 3e8e4ae + 2f4a67c commit fb29b23
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
16 changes: 9 additions & 7 deletions mmv1/products/colab/RuntimeTemplate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ examples:
region_override: 'us-central1'
vars:
runtime_template_name: 'colab-runtime-template'
- name: 'colab_runtime_template_no_name'
primary_resource_id: 'runtime-template'
region_override: 'us-central1'
exclude_import_test: true
- name: 'colab_runtime_template_full'
primary_resource_id: 'runtime-template'
primary_resource_name: 'fmt.Sprintf("tf-test-colab-runtime-template%s", context["random_suffix"])'
Expand All @@ -46,8 +50,6 @@ examples:
runtime_template_name: 'colab-runtime-template'
network_name: 'colab-test-default'
key_name: 'my-crypto-key'
test_env_vars:
project_id: 'PROJECT_NAME'
test_vars_overrides:
key_name: 'acctest.BootstrapKMSKeyInLocation(t, "us-central1").CryptoKey.Name'
parameters:
Expand All @@ -59,6 +61,7 @@ parameters:
- name: 'name'
type: String
url_param_only: true
default_from_api: true
description: 'The resource name of the Runtime Template'
properties:
- name: 'displayName'
Expand All @@ -71,6 +74,7 @@ properties:
description: 'The description of the Runtime Template.'
- name: machineSpec
type: NestedObject
default_from_api: true
description: |
'The machine configuration of the runtime.'
properties:
Expand All @@ -90,7 +94,6 @@ properties:
- 'NVIDIA_L4'
- name: 'acceleratorCount'
type: Integer
default_from_api: true
description: 'The number of accelerators used by the runtime.'
- name: dataPersistentDiskSpec
type: NestedObject
Expand All @@ -111,6 +114,7 @@ properties:
The disk size of the runtime in GB. If specified, the diskType must also be specified. The minimum size is 10GB and the maximum is 65536GB.
- name: networkSpec
type: NestedObject
default_from_api: true
description: 'The network configuration for the runtime.'
properties:
- name: 'enableInternetAccess'
Expand All @@ -119,12 +123,10 @@ properties:
- name: 'network'
type: String
description: 'The name of the VPC that this runtime is in.'
default_from_api: true
diff_suppress_func: 'tpgresource.CompareSelfLinkRelativePaths'
- name: 'subnetwork'
type: String
description: 'The name of the VPC that this runtime is in.'
default_from_api: true
description: 'The name of the subnetwork that this runtime is in.'
diff_suppress_func: 'tpgresource.CompareSelfLinkRelativePaths'
- name: 'labels'
type: KeyValueLabels
Expand All @@ -143,7 +145,7 @@ properties:
properties:
- name: 'eucDisabled'
type: Boolean
description: 'Enable end user credential access for the runtime.'
description: 'Disable end user credential access for the runtime.'
- name: shieldedVmConfig
type: NestedObject
description: 'Runtime Shielded VM spec.'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
resource "google_colab_runtime_template" "{{$.PrimaryResourceId}}" {
display_name = "Runtime template no name"
location = "us-central1"

machine_spec {
machine_type = "e2-standard-4"
}

network_spec {
enable_internet_access = true
}
}

0 comments on commit fb29b23

Please sign in to comment.