GoogleCloudPlatform/kubernetes-engine-windows-tools

Builder fails when subnet name != network name

Closed this issue · 0 comments

idofl commented

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.