Remove the Restriction that No NSG should be set on the Subnet (#478)
This commit is contained in:
@@ -338,9 +338,6 @@ func (p *ACIProvider) setupNetworkProfile(auth *client.Authentication) error {
|
|||||||
if p.subnetCIDR != *subnet.SubnetPropertiesFormat.AddressPrefix {
|
if p.subnetCIDR != *subnet.SubnetPropertiesFormat.AddressPrefix {
|
||||||
return fmt.Errorf("found subnet '%s' using different CIDR: '%s'. desired: '%s'", p.subnetName, *subnet.SubnetPropertiesFormat.AddressPrefix, p.subnetCIDR)
|
return fmt.Errorf("found subnet '%s' using different CIDR: '%s'. desired: '%s'", p.subnetName, *subnet.SubnetPropertiesFormat.AddressPrefix, p.subnetCIDR)
|
||||||
}
|
}
|
||||||
if subnet.SubnetPropertiesFormat.NetworkSecurityGroup != nil {
|
|
||||||
return fmt.Errorf("unable to delegate subnet '%s' to Azure Container Instance since it references the network security group '%s'.", p.subnetName, *subnet.SubnetPropertiesFormat.NetworkSecurityGroup.ID)
|
|
||||||
}
|
|
||||||
if subnet.SubnetPropertiesFormat.RouteTable != nil {
|
if subnet.SubnetPropertiesFormat.RouteTable != nil {
|
||||||
return fmt.Errorf("unable to delegate subnet '%s' to Azure Container Instance since it references the route table '%s'.", p.subnetName, *subnet.SubnetPropertiesFormat.RouteTable.ID)
|
return fmt.Errorf("unable to delegate subnet '%s' to Azure Container Instance since it references the route table '%s'.", p.subnetName, *subnet.SubnetPropertiesFormat.RouteTable.ID)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user