Skip to content

Commit

Permalink
adding debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
smritidahal653 committed Jul 20, 2024
1 parent e9dabc9 commit f5bba1d
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 51 deletions.
100 changes: 50 additions & 50 deletions hack/e2e/aks-addon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,57 +114,57 @@ az network vnet subnet create \
--address-prefix $ACI_SUBNET_CIDR \
--network-security-group $NSG_NAME

# az network nsg rule create \
# --resource-group $RESOURCE_GROUP \
# --nsg-name $NSG_NAME \
# --name AllowClusterSubnetTraffic \
# --priority 1000 \
# --direction Inbound \
# --access Allow \
# --protocol '*' \
# --source-address-prefix $CLUSTER_SUBNET_CIDR \
# --source-port-range '*' \
# --destination-address-prefix $CLUSTER_SUBNET_CIDR \
# --destination-port-range '*'

# az network nsg rule create \
# --resource-group $RESOURCE_GROUP \
# --nsg-name $NSG_NAME \
# --name AllowClusterSubnetOutbound \
# --priority 1100 \
# --direction Outbound \
# --access Allow \
# --protocol '*' \
# --source-address-prefix $CLUSTER_SUBNET_CIDR \
# --source-port-range '*' \
# --destination-address-prefix '*' \
# --destination-port-range '*'

# az network nsg rule create \
# --resource-group $RESOURCE_GROUP \
# --nsg-name $NSG_NAME \
# --name AllowACISubnetTraffic \
# --priority 1100 \
# --direction Inbound \
# --access Allow \
# --protocol '*' \
# --source-address-prefix $ACI_SUBNET_CIDR \
# --source-port-range '*' \
# --destination-address-prefix $ACI_SUBNET_CIDR \
# --destination-port-range '*'
az network nsg rule create \
--resource-group $RESOURCE_GROUP \
--nsg-name $NSG_NAME \
--name AllowClusterSubnetTraffic \
--priority 1000 \
--direction Inbound \
--access Allow \
--protocol '*' \
--source-address-prefix $CLUSTER_SUBNET_CIDR \
--source-port-range '*' \
--destination-address-prefix $CLUSTER_SUBNET_CIDR \
--destination-port-range '*'

az network nsg rule create \
--resource-group $RESOURCE_GROUP \
--nsg-name $NSG_NAME \
--name AllowClusterSubnetOutbound \
--priority 1100 \
--direction Outbound \
--access Allow \
--protocol '*' \
--source-address-prefix $CLUSTER_SUBNET_CIDR \
--source-port-range '*' \
--destination-address-prefix '*' \
--destination-port-range '*'

az network nsg rule create \
--resource-group $RESOURCE_GROUP \
--nsg-name $NSG_NAME \
--name AllowACISubnetTraffic \
--priority 1100 \
--direction Inbound \
--access Allow \
--protocol '*' \
--source-address-prefix $ACI_SUBNET_CIDR \
--source-port-range '*' \
--destination-address-prefix $ACI_SUBNET_CIDR \
--destination-port-range '*'

# az network nsg rule create \
# --resource-group $RESOURCE_GROUP \
# --nsg-name $NSG_NAME \
# --name AllowACISubnetOutbound \
# --priority 1300 \
# --direction Outbound \
# --access Allow \
# --protocol '*' \
# --source-address-prefix $ACI_SUBNET_CIDR \
# --source-port-range '*' \
# --destination-address-prefix '*' \
# --destination-port-range '*'
az network nsg rule create \
--resource-group $RESOURCE_GROUP \
--nsg-name $NSG_NAME \
--name AllowACISubnetOutbound \
--priority 1300 \
--direction Outbound \
--access Allow \
--protocol '*' \
--source-address-prefix $ACI_SUBNET_CIDR \
--source-port-range '*' \
--destination-address-prefix '*' \
--destination-port-range '*'

cluster_subnet_id="$(az network vnet subnet show \
--resource-group $RESOURCE_GROUP \
Expand Down
2 changes: 1 addition & 1 deletion pkg/network/aci_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ func (pn *ProviderNetwork) CreateACISubnet(ctx context.Context, subnetsClient *a
defer span.End()

logger.Debug("creating a subnet")

logger.Info("NSG info: ", *pn.NetworkSecurityGroup)

Check warning on line 249 in pkg/network/aci_network.go

View check run for this annotation

Codecov / codecov/patch

pkg/network/aci_network.go#L249

Added line #L249 was not covered by tests
subnet := aznetworkv2.Subnet{
Name: &pn.SubnetName,
Properties: &aznetworkv2.SubnetPropertiesFormat{
Expand Down

0 comments on commit f5bba1d

Please sign in to comment.