Skip to content

Commit 9337b59

Browse files
Merge pull request openshift#7094 from r4f4/azure-byo-nsg
OCPBUGS-11796: azure: skip NSG creation when BYO vnet
2 parents 690fbc3 + f03a0af commit 9337b59

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

data/data/azure/vnet/nsg.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ resource "azurerm_subnet_network_security_group_association" "worker" {
2020
}
2121

2222
resource "azurerm_network_security_rule" "apiserver_in" {
23+
count = var.azure_preexisting_network ? 0 : 1
2324
name = "apiserver_in"
2425
priority = 101
2526
direction = "Inbound"

0 commit comments

Comments
 (0)