GoogleCloudPlatform / policy-library

A library of constraint templates and sample constraints for Constraint Framework tools
Apache License 2.0
224 stars 127 forks source link

Support for ip_alias constraint with 3.0+ google providers. #355

Closed mmontan closed 4 years ago

mmontan commented 4 years ago

The field use_ip_alias has been removed from the google provider. This causes the constraint to fail on clusters that have ip alias enabled.

According to the changelog, the new indication of a route-based cluster is the missing ip_allocation policy block. I updated the constraint to use the new system.

https://www.terraform.io/docs/providers/google/guides/version_3_upgrade.html#ip_allocation_policy-will-catch-out-of-band-changes-use_ip_aliases-removed