Skip to content

Commit

Permalink
handle legacy network deprecation (#2508)
Browse files Browse the repository at this point in the history
  • Loading branch information
megan07 authored and rileykarson committed Oct 24, 2019
1 parent bfac07f commit 1c26baa
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion products/compute/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,6 @@ overrides: !ruby/object:Overrides::ResourceOverrides
custom_code: !ruby/object:Provider::Terraform::CustomCode
post_create: templates/terraform/post_create/compute_network_delete_default_route.erb
extra_schema_entry: templates/terraform/extra_schema_entry/network.erb
encoder: templates/terraform/encoders/network.erb
NetworkEndpoint: !ruby/object:Overrides::Terraform::ResourceOverride
id_format: "{{project}}/{{zone}}/{{network_endpoint_group}}/{{instance}}/{{ip_address}}/{{port}}"
mutex: networkEndpoint/{{project}}/{{zone}}/{{network_endpoint_group}}
Expand Down
5 changes: 0 additions & 5 deletions templates/terraform/encoders/network.erb

This file was deleted.

2 changes: 1 addition & 1 deletion templates/terraform/extra_schema_entry/network.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
-%>
"ipv4_range": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Removed: "Legacy Networks are deprecated and you will no longer be able to create them using this field from Feb 1, 2020 onwards.",
},
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ monitoring_service = "monitoring.googleapis.com/kubernetes"

### `ipv4_range` is now removed

Legacy Networks are deprecated and you will no longer be able to create them
Legacy Networks are removed and you will no longer be able to create them
using this field from Feb 1, 2020 onwards.

## Resource: `google_compute_network_peering`
Expand Down

0 comments on commit 1c26baa

Please sign in to comment.