Skip to content

Commit

Permalink
Add SHARED_LOADBALANCER_VIP purpose to regional addresses. (#4169)
Browse files Browse the repository at this point in the history
  • Loading branch information
upodroid authored Dec 10, 2020
1 parent 59e1163 commit c4010c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
14 changes: 3 additions & 11 deletions products/compute/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,27 +122,19 @@ objects:
required: true
- !ruby/object:Api::Type::Enum
name: purpose
exact_version: ga
description: |
The purpose of this resource, which can be one of the following values:

* GCE_ENDPOINT for addresses that are used by VM instances, alias IP ranges, internal load balancers, and similar resources.

This should only be set when using an Internal address.
values:
- :GCE_ENDPOINT
- !ruby/object:Api::Type::Enum
name: purpose
exact_version: beta
description: |
The purpose of this resource, which can be one of the following values:

* GCE_ENDPOINT for addresses that are used by VM instances, alias IP ranges, internal load balancers, and similar resources.
* SHARED_LOADBALANCER_VIP for an address that can be used by multiple internal load balancers.

* VPC_PEERING for addresses that are reserved for VPC peer networks.

This should only be set when using an Internal address.
values:
- :GCE_ENDPOINT
- :VPC_PEERING
- :SHARED_LOADBALANCER_VIP
- !ruby/object:Api::Type::Enum
name: 'networkTier'
Expand Down
1 change: 0 additions & 1 deletion products/compute/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ overrides: !ruby/object:Overrides::ResourceOverrides
- !ruby/object:Provider::Terraform::Examples
name: "address_with_shared_loadbalancer_vip"
primary_resource_id: "internal_with_shared_loadbalancer_vip"
min_version: 'beta'
vars:
address_name: "my-internal-address"
skip_docs: true # It is almost identical to internal_with_gce_endpoint
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
resource "google_compute_address" "<%= ctx[:primary_resource_id] %>" {
provider = google-beta
name = "<%= ctx[:vars]['address_name'] %>"
address_type = "INTERNAL"
purpose = "SHARED_LOADBALANCER_VIP"
Expand Down

0 comments on commit c4010c2

Please sign in to comment.