Skip to content

Commit

Permalink
GA ILB multi-nic (GoogleCloudPlatform#3289)
Browse files Browse the repository at this point in the history
* GA ILB multi-nic

* Failover is not GA, needs if/else
  • Loading branch information
slevenick authored and Nathan Klish committed May 18, 2020
1 parent b5579f4 commit 75ec46f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion products/compute/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2308,7 +2308,6 @@ objects:
description: |
The URL of the network to which this backend service belongs.
This field can only be specified when the load balancing scheme is set to INTERNAL.
min_version: beta
- !ruby/object:Api::Resource
name: 'BackendServiceSignedUrlKey'
kind: 'compute#BackendServiceSignedUrlKey'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ func TestAccComputeRegionBackendService_withBackendInternalManaged(t *testing.T)
})
}

<% unless version == 'ga' -%>
func TestAccComputeRegionBackendService_withBackendMultiNic(t *testing.T) {
t.Parallel()

Expand All @@ -141,7 +140,6 @@ func TestAccComputeRegionBackendService_withBackendMultiNic(t *testing.T) {
},
})
}
<% end -%>

func TestAccComputeRegionBackendService_withConnectionDrainingAndUpdate(t *testing.T) {
t.Parallel()
Expand Down Expand Up @@ -559,7 +557,6 @@ resource "google_compute_health_check" "default" {
`, serviceName, timeout, igName, itName, checkName)
}

<% unless version == 'ga' -%>
func testAccComputeRegionBackendService_withBackendMultiNic(
serviceName, net1Name, net2Name, igName, itName, checkName string, timeout int64) string {
return fmt.Sprintf(`
Expand All @@ -577,13 +574,15 @@ resource "google_compute_region_backend_service" "lipsum" {

backend {
group = google_compute_instance_group_manager.foobar.instance_group
<% unless version.nil? || version == 'ga' -%>
failover = true
}

failover_policy {
disable_connection_drain_on_failover = true
drop_traffic_if_unhealthy = true
failover_ratio = 0.4
drop_traffic_if_unhealthy = true
failover_ratio = 0.4
<% end -%>
}

network = google_compute_network.network2.self_link
Expand Down Expand Up @@ -658,7 +657,6 @@ resource "google_compute_health_check" "default" {
}
`, serviceName, timeout, net1Name, net1Name, net2Name, net2Name, igName, itName, checkName)
}
<% end -%>

func testAccComputeRegionBackendService_withInvalidInternalBackend(
serviceName, igName, itName, checkName string) string {
Expand Down

0 comments on commit 75ec46f

Please sign in to comment.