BYO PrivateDNSZone from a different ResourceGroup #5273
Labels
kind/bug
Categorizes issue or PR as related to a bug.
priority/backlog
Higher priority than priority/awaiting-more-evidence.
/kind bug
[Before submitting an issue, have you checked the Troubleshooting Guide self-managed & managed?]
What steps did you take and what happened:
CAPZ only takes DNSPrivateZone name as input and uses the cluster ResourceGroup for PrivateDNSZone(ref)
If the zone is not present in cluster resource group, CAPZ creates the zone and manages lifecycle
Scenario-1
Here, CAPZ tries to create the PrivateDNSZone named zone1 in RG1 and links it to VNET in RG-vnet
Scenario-2
Here, CAPZ will again create a new PrivateDNSZone zone1 in RG2 and will try to link it to VNET in RG-vnet causing name conflicts
What did you expect to happen:
CAPZ should support taking PrivateDNSZone ResourceGroup as input or support a flag
UseVNETResourceGroup
for PrivateDNSZoneAnything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Environment:
kubectl version
):/etc/os-release
):The text was updated successfully, but these errors were encountered: