Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update subnet sample yaml files to use subnet_secondary_ranges #1203

Merged
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
region: europe-west1
description: Default subnet for dev Data Platform
ip_cidr_range: 10.128.48.0/24
secondary_ip_range:
secondary_ip_ranges:
pods: 100.128.48.0/20
services: 100.255.48.0/24
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
region: europe-west1
description: Default subnet for prod gke nodes
ip_cidr_range: 10.64.0.0/24
secondary_ip_range:
secondary_ip_ranges:
pods: 100.64.0.0/16
services: 192.168.1.0/24
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
region: europe-west1
description: Default subnet for dev Data Platform
ip_cidr_range: 10.128.48.0/24
secondary_ip_range:
secondary_ip_ranges:
pods: 100.128.48.0/20
services: 100.255.48.0/24
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
region: europe-west1
description: Default subnet for prod gke nodes
ip_cidr_range: 10.64.0.0/24
secondary_ip_range:
secondary_ip_ranges:
pods: 100.64.0.0/16
services: 192.168.1.0/24
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
region: europe-west1
description: Default subnet for dev Data Platform
ip_cidr_range: 10.128.48.0/24
secondary_ip_range:
secondary_ip_ranges:
pods: 100.128.48.0/20
services: 100.255.48.0/24
4 changes: 2 additions & 2 deletions tests/modules/net_vpc/examples/factory.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ values:
project: my-project
region: europe-west1
role: null
secondary_ip_range:
secondary_ip_ranges:
juliocc marked this conversation as resolved.
Show resolved Hide resolved
- ip_cidr_range: 192.168.0.0/24
range_name: secondary-range-a
module.vpc.google_compute_subnetwork.subnetwork["europe-west4/subnet-simple"]:
Expand All @@ -43,7 +43,7 @@ values:
project: my-project
region: europe-west4
role: null
secondary_ip_range: []
secondary_ip_ranges: []
module.vpc.google_compute_subnetwork_iam_binding.binding["europe-west1/subnet-detailed.roles/compute.networkUser"]:
condition: []
members:
Expand Down
2 changes: 1 addition & 1 deletion tests/modules/net_vpc/examples/shared-vpc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ values:
host_project: my-project
service_project: project2
module.vpc-host.google_compute_subnetwork.subnetwork["europe-west1/subnet-1"]:
secondary_ip_range:
secondary_ip_ranges:
- ip_cidr_range: 172.16.0.0/20
range_name: pods
- ip_cidr_range: 192.168.0.0/24
Expand Down
4 changes: 2 additions & 2 deletions tests/modules/net_vpc/examples/simple.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ values:
project: my-project
region: europe-west1
role: null
secondary_ip_range:
secondary_ip_ranges:
- ip_cidr_range: 172.16.0.0/20
range_name: pods
- ip_cidr_range: 192.168.0.0/24
Expand All @@ -43,7 +43,7 @@ values:
project: my-project
region: europe-west2
role: null
secondary_ip_range: []
secondary_ip_ranges: []

counts:
google_compute_network: 1
Expand Down
8 changes: 4 additions & 4 deletions tests/modules/net_vpc/examples/subnet-options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ values:
private_ip_google_access: false
project: my-project
region: europe-west1
secondary_ip_range: []
secondary_ip_ranges: []
module.vpc.google_compute_subnetwork.subnetwork["europe-west1/simple"]:
description: Terraform-managed.
ip_cidr_range: 10.0.0.0/24
Expand All @@ -33,7 +33,7 @@ values:
private_ip_google_access: true
project: my-project
region: europe-west1
secondary_ip_range: []
secondary_ip_ranges: []
module.vpc.google_compute_subnetwork.subnetwork["europe-west1/with-flow-logs"]:
description: Terraform-managed.
ip_cidr_range: 10.0.3.0/24
Expand All @@ -49,7 +49,7 @@ values:
project: my-project
region: europe-west1
role: null
secondary_ip_range: []
secondary_ip_ranges: []
module.vpc.google_compute_subnetwork.subnetwork["europe-west1/with-secondary-ranges"]:
description: Terraform-managed.
ip_cidr_range: 10.0.2.0/24
Expand All @@ -59,7 +59,7 @@ values:
project: my-project
region: europe-west1
role: null
secondary_ip_range:
secondary_ip_ranges:
- ip_cidr_range: 192.168.0.0/24
range_name: a
- ip_cidr_range: 192.168.1.0/24
Expand Down