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

fix: (IAC-1321) updates to create NSG in network rg #365

Merged
merged 1 commit into from
Feb 22, 2024
Merged

Conversation

riragh
Copy link
Member

@riragh riragh commented Feb 13, 2024

Changes:

All network related resources should get created into a vnet resource group if supplied by user. VNET gets created correctly in network resource group if vnet_resource_group_name is provided however, NSG creation was not following the same pattern. This PR corrects that behavior to follow the same logic.

If vnet_resource_group_name is provided without nsg_name, IAC will create NSG for you in the provided vnet resource group else NSG will created in the AKS resource group like before.

Tests:

Verified following scenarios, see test details in internal ticket:

Scenario Provider Task kubectl version order cadence notes
1 Azure Defaults 1.27.9 ****** fast:2020 NSG is created in aks rg
2 Azure Defaults, vnet_resource_group_name = "rp-vnet-rg-t02" 1.27.9 ****** fast:2020 NSG is created in provided vnet rg

@riragh riragh added the bug Something isn't working label Feb 13, 2024
@riragh riragh self-assigned this Feb 13, 2024
Copy link
Member

@thpang thpang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@riragh riragh merged commit 34773e1 into staging Feb 22, 2024
3 checks passed
@riragh riragh deleted the IAC-1321 branch February 22, 2024 20:23
@riragh riragh mentioned this pull request Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants