-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce number of generated resources to 4:
google_compute_region_backend_service google_compute_backend_service google_compute_forwarding_rule google_compute_region_health_check
- Loading branch information
1 parent
210ca9d
commit c4e3924
Showing
5 changed files
with
110 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 0 additions & 42 deletions
42
mmv1/third_party/cai2hcl/services/compute/testdata/compute_global_forwarding_rule.json
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
mmv1/third_party/cai2hcl/services/compute/testdata/compute_global_forwarding_rule.tf
This file was deleted.
Oops, something went wrong.
55 changes: 55 additions & 0 deletions
55
mmv1/third_party/cai2hcl/services/compute/testdata/compute_region_health_check.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
|
||
[ | ||
{ | ||
"name": "//compute.googleapis.com/projects/myproj/regions/us-central1/healthChecks/hc-1", | ||
"asset_type": "compute.googleapis.com/RegionHealthCheck", | ||
"ancestry_path": "organizations/123/folders/456/project/myproj", | ||
"resource": { | ||
"version": "v1", | ||
"discovery_document_uri": "https://www.googleapis.com/discovery/v1/apis/compute/v1/rest", | ||
"discovery_name": "RegionHealthCheck", | ||
"parent": "//cloudresourcemanager.googleapis.com/projects/myproj", | ||
"data": { | ||
"checkIntervalSec": 5, | ||
"description": "", | ||
"healthyThreshold": 2, | ||
"name": "hc", | ||
"region": "projects/cn-fe-playground/regions/us-central1", | ||
"tcpHealthCheck": { | ||
"port": 80, | ||
"proxyHeader": "NONE" | ||
}, | ||
"timeoutSec": 5, | ||
"type": "TCP", | ||
"unhealthyThreshold": 2 | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "//compute.googleapis.com/projects/myproj/regions/us-central1/healthChecks/hc-1", | ||
"asset_type": "compute.googleapis.com/RegionHealthCheck", | ||
"ancestry_path": "organizations/123/folders/456/project/myproj", | ||
"resource": { | ||
"version": "v1", | ||
"discovery_document_uri": "https://www.googleapis.com/discovery/v1/apis/compute/v1/rest", | ||
"discovery_name": "RegionHealthCheck", | ||
"parent": "//cloudresourcemanager.googleapis.com/projects/myproj", | ||
"data": { | ||
"checkIntervalSec": 5, | ||
"description": "descr", | ||
"healthyThreshold": 2, | ||
"name": "hc", | ||
"region": "projects/cn-fe-playground/regions/us-central1", | ||
"tcpHealthCheck": { | ||
"port": 8, | ||
"proxyHeader": "PROXY_V1", | ||
"request": "a", | ||
"response": "b" | ||
}, | ||
"timeoutSec": 5, | ||
"type": "TCP", | ||
"unhealthyThreshold": 2 | ||
} | ||
} | ||
} | ||
] |
44 changes: 44 additions & 0 deletions
44
mmv1/third_party/cai2hcl/services/compute/testdata/compute_region_health_check.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
resource "google_compute_region_health_check" "hc" { | ||
check_interval_sec = 5 | ||
healthy_threshold = 2 | ||
|
||
log_config { | ||
enable = false | ||
} | ||
|
||
name = "hc" | ||
region = "us-central1" | ||
|
||
tcp_health_check { | ||
port = 80 | ||
proxy_header = "NONE" | ||
} | ||
|
||
timeout_sec = 5 | ||
type = "TCP" | ||
unhealthy_threshold = 2 | ||
} | ||
|
||
resource "google_compute_region_health_check" "hc" { | ||
check_interval_sec = 5 | ||
description = "descr" | ||
healthy_threshold = 2 | ||
|
||
log_config { | ||
enable = false | ||
} | ||
|
||
name = "hc" | ||
region = "us-central1" | ||
|
||
tcp_health_check { | ||
port = 8 | ||
proxy_header = "PROXY_V1" | ||
request = "a" | ||
response = "b" | ||
} | ||
|
||
timeout_sec = 5 | ||
type = "TCP" | ||
unhealthy_threshold = 2 | ||
} |