Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move vnet peering to pre-cluster #1564

Merged
merged 1 commit into from
Dec 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ data "azurerm_virtual_network" "vnets" {
for_each = module.clusters.vnets_url
resource_group_name = module.config.cluster_resource_group
name = each.key
depends_on = [module.aks]
}

module "vnet_peering" {
Expand All @@ -32,6 +33,7 @@ module "vnet_peering" {
vnet_hub_id = data.azurerm_virtual_network.hub.id
vnet_hub_resource_group = module.config.vnet_resource_group
vnet_hub_name = data.azurerm_virtual_network.hub.name
depends_on = [module.aks]
}

module "private_dns_zone_virtual_network_peering" {
Expand All @@ -41,4 +43,5 @@ module "private_dns_zone_virtual_network_peering" {
cluster_vnet_resourcegroup = data.azurerm_virtual_network.hub.resource_group_name
vnet_cluster_hub_id = data.azurerm_virtual_network.vnets[each.value.vnet].id
private_dns_zone = each.value.private_dns_zone
depends_on = [module.aks]
}
Loading