Skip to content

Commit

Permalink
Add max_distance field to group placement policy
Browse files Browse the repository at this point in the history
  • Loading branch information
kubalaguna committed Feb 25, 2023
1 parent 06702ee commit 1fec91f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mmv1/products/compute/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13644,6 +13644,11 @@ objects:
attached.
values:
- :COLLOCATED
- !ruby/object:Api::Type::Integer
name: 'maxDistance'
min_version: 'beta'
description: |
Specifies the number of max logical switches.
- !ruby/object:Api::Type::NestedObject
name: 'instanceSchedulePolicy'
conflicts:
Expand Down
6 changes: 6 additions & 0 deletions mmv1/products/compute/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2456,6 +2456,12 @@ overrides: !ruby/object:Overrides::ResourceOverrides
primary_resource_id: "baz"
vars:
name: "policy"
- !ruby/object:Provider::Terraform::Examples
name: "resource_policy_placement_policy_max_distance"
min_version: "beta"
primary_resource_id: "baz"
vars:
name: "policy"
- !ruby/object:Provider::Terraform::Examples
name: "resource_policy_instance_schedule_policy"
primary_resource_id: "hourly"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
resource "google_compute_resource_policy" "baz" {
name = "<%= ctx[:vars]['name'] %>"
region = "us-central1"
provider = google-beta
group_placement_policy {
vm_count = 2
collocation = "COLLOCATED"
max_distance = 2
}
}

0 comments on commit 1fec91f

Please sign in to comment.