GoogleCloudPlatform / kubernetes-engine-windows-tools

Apache License 2.0
4 stars 11 forks source link

Builder fails when subnet name != network name #14

Closed idofl closed 1 year ago

idofl commented 1 year ago

When the network and subnets are named the same (e.g. 'default'), the builder works. If the subnet name is different than the VPC, the builder fails because it can't find a firewall rule for WinRM in a VPC named after the subnet.

The issue is in the CheckProjectFirewalls function. The function looks for FW rules that are attached to networks named after the network and the subnet, but you cannot assign FW rules to subnets, only networks. This causes the test to fail if the name of the subnet is different than that of the VPC.