Change e2e regional address to use full subnet path
@@ -322,7 +322,8 @@ func NewGCPAddress(s *Sandbox, name string, region string) error {
addr.Purpose = "SHARED_LOADBALANCER_VIP"
// Regional addresses need a Subnet if the cluster network is not "default"
if s.f.Subnet != "" {
- addr.Subnetwork = s.f.Subnet
+ subnetID := cloud.ResourceID{ProjectID: s.f.Project, Resource: "subnetworks", Key: meta.RegionalKey(s.f.Subnet, s.f.Region)}
+ addr.Subnetwork = subnetID.ResourcePath()
}
if err := s.f.Cloud.Addresses().Insert(context.Background(), meta.RegionalKey(addr.Name, region), addr); err != nil {
return err
