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

Add delegation support for Subnet #2042

Merged
merged 28 commits into from
Jan 8, 2019
Merged

Add delegation support for Subnet #2042

merged 28 commits into from
Jan 8, 2019

Conversation

metacpp
Copy link
Contributor

@metacpp metacpp commented Oct 9, 2018

In order to support vNet for ACI, subnet needs to support delegations.

This PR also involves upgrade of Network package to 2018-08-01 version.

Add delegation for subnet to support ACI VNet.
Fix the type issue for `service_delegation`.
Add delegation for subnet to integrate with ACI.
@ghost ghost added the size/XXL label Oct 9, 2018
@metacpp metacpp added this to the Soon milestone Oct 9, 2018
Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

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

hi @metacpp

Thanks for this PR - I've taken a look through and left some comments inline but this is off to a good start. Generally we take a two-step approach to upgrading an existing SDK where a dependency needs it - first upgrading to the new version in one PR and then adding the new functionality in another (since this makes it simpler to review) - but I don't think we need to split that out in this case.

Thanks!

azurerm/resource_arm_subnet.go Outdated Show resolved Hide resolved
azurerm/resource_arm_subnet.go Outdated Show resolved Hide resolved
azurerm/resource_arm_subnet.go Outdated Show resolved Hide resolved
azurerm/resource_arm_subnet_test.go Outdated Show resolved Hide resolved
azurerm/resource_arm_subnet_test.go Outdated Show resolved Hide resolved
website/docs/r/subnet.html.markdown Outdated Show resolved Hide resolved
website/docs/r/subnet.html.markdown Outdated Show resolved Hide resolved
website/docs/r/subnet.html.markdown Outdated Show resolved Hide resolved
azurerm/resource_arm_subnet.go Outdated Show resolved Hide resolved
vendor/vendor.json Outdated Show resolved Hide resolved
@tombuildsstuff

This comment has been minimized.

@tombuildsstuff tombuildsstuff modified the milestones: Soon, Being Sorted Oct 25, 2018
@tombuildsstuff tombuildsstuff added the upstream/microsoft Indicates that there's an upstream issue blocking this issue/PR label Oct 25, 2018
@tombuildsstuff
Copy link
Contributor

hi @metacpp

After chatting with @VaijanathB yesterday it sounds like there's an issue in the underlying API here during deletion; whilst he's tracking that down I'm going to mark this as blocked and we'll re-evaluate once the API's been fixed.

Thanks!

@tombuildsstuff tombuildsstuff modified the milestones: Being Sorted, Blocked Oct 25, 2018
@metacpp
Copy link
Contributor Author

metacpp commented Oct 29, 2018

hi @metacpp

After chatting with @VaijanathB yesterday it sounds like there's an issue in the underlying API here during deletion; whilst he's tracking that down I'm going to mark this as blocked and we'll re-evaluate once the API's been fixed.

Thanks!

Do you mean the upgrade network API to 2018-08-01? I manually tested through terraform destroy, did not see any error.

@tombuildsstuff tombuildsstuff removed upstream/microsoft Indicates that there's an upstream issue blocking this issue/PR waiting-response labels Nov 7, 2018
@tombuildsstuff tombuildsstuff removed this from the Blocked milestone Nov 7, 2018
Tests pass
```
$ acctests azurerm TestAccAzureRMSubnet_removeNetworkSecurityGroup
=== RUN   TestAccAzureRMSubnet_removeNetworkSecurityGroup
--- PASS: TestAccAzureRMSubnet_removeNetworkSecurityGroup (140.01s)
PASS
ok  	github.com/terraform-providers/terraform-provider-azurerm/azurerm	141.927s
```
@tombuildsstuff tombuildsstuff removed the request for review from JunyiYi November 7, 2018 12:26
@tombuildsstuff
Copy link
Contributor

tombuildsstuff commented Nov 7, 2018

@metacpp I've pushed a commit to fix the broken TestAccAzureRMSubnet_removeNetworkSecurityGroup test - and the tests now LGTM:

screenshot 2018-11-07 at 12 36 16

tombuildsstuff and others added 9 commits January 3, 2019 11:51
Co-Authored-By: metacpp <1684739+metacpp@users.noreply.github.com>
Co-Authored-By: metacpp <1684739+metacpp@users.noreply.github.com>
Co-Authored-By: metacpp <1684739+metacpp@users.noreply.github.com>
Co-Authored-By: metacpp <1684739+metacpp@users.noreply.github.com>
Co-Authored-By: metacpp <1684739+metacpp@users.noreply.github.com>
Co-Authored-By: metacpp <1684739+metacpp@users.noreply.github.com>
@metacpp
Copy link
Contributor Author

metacpp commented Jan 4, 2019

@tombuildsstuff the PR is updated and all tests passed.
image

Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

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

hey @metacpp

Thanks for pushing those changes - if we can fix up the crash points this otherwise LGTM 👍

Thanks!

azurerm/resource_arm_subnet.go Outdated Show resolved Hide resolved
azurerm/resource_arm_subnet.go Outdated Show resolved Hide resolved
azurerm/resource_arm_subnet.go Outdated Show resolved Hide resolved
azurerm/resource_arm_subnet.go Outdated Show resolved Hide resolved
tombuildsstuff and others added 2 commits January 4, 2019 18:19
Co-Authored-By: metacpp <1684739+metacpp@users.noreply.github.com>
@metacpp
Copy link
Contributor Author

metacpp commented Jan 5, 2019

@tombuildsstuff the PR is updated with nil check and I reran the test successfully:
image

Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

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

@metacpp,

Thanks for the updates, i've left a couple comment inline that should be addressed before merge

azurerm/resource_arm_subnet.go Outdated Show resolved Hide resolved
website/docs/r/subnet.html.markdown Outdated Show resolved Hide resolved
azurerm/resource_arm_subnet_test.go Outdated Show resolved Hide resolved
@metacpp
Copy link
Contributor Author

metacpp commented Jan 7, 2019

@katbyte the PR is updated with your suggestions.

@katbyte
Copy link
Collaborator

katbyte commented Jan 8, 2019

Thanks for the changes @metacpp, LGTM now 🙂

@katbyte katbyte merged commit 357fe46 into master Jan 8, 2019
@katbyte katbyte deleted the subnet_delegation branch January 8, 2019 04:48
katbyte added a commit that referenced this pull request Jan 8, 2019
@ghost
Copy link

ghost commented Mar 5, 2019

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 5, 2019
@ghost ghost removed the waiting-response label Mar 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants