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 new resource azurerm_virtual_hub_route_table #8939

Merged
merged 8 commits into from
Nov 4, 2020

Conversation

neil-yechenwei
Copy link
Contributor

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.

Thanks @neil-yechenwei - i've left some comments inline that need to be addressed before merge


* `next_hop` - (Required) The next hop resource ID.

* `next_hop_type` - (Required) The type of next hop. Possible value is `ResourceId`.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
* `next_hop_type` - (Required) The type of next hop. Possible value is `ResourceId`.
* `next_hop_type` - (Required) The type of next hop. Currently the only possible value is `ResourceId`.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated


* `name` - (Required) The name which should be used for this route.

* `destinations` - (Required) The list of all destinations.
Copy link
Collaborator

Choose a reason for hiding this comment

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

could we elaborate this description

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

},
},

"destination_type": {
Copy link
Collaborator

Choose a reason for hiding this comment

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

this would make more sense as

Suggested change
"destination_type": {
"destinations_type": {

as it applies to all of them

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

@neil-yechenwei
Copy link
Contributor Author

@katbyte , thanks for your comments. I've updated code. Please have a look. Thanks.

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.

Thanks @neil-yechenwei, i've given this another review and left some more comments inline.

),
},
data.ImportStep(),
},
Copy link
Collaborator

Choose a reason for hiding this comment

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

could we add another step going back to basic here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

}

resource "azurerm_resource_group" "test" {
name = "acctestRG-vhubroutetable-%d"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
name = "acctestRG-vhubroutetable-%d"
name = "acctestRG-vhub-%d"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

%s

resource "azurerm_virtual_hub_route_table" "test" {
name = "acctest-routetable-%d"
Copy link
Collaborator

Choose a reason for hiding this comment

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

could we use some capitals here?

Suggested change
name = "acctest-routetable-%d"
name = "acctest-RouteTable-%d"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

resource "azurerm_virtual_hub_route_table" "test" {
name = "acctest-routetable-%d"
virtual_hub_id = azurerm_virtual_hub.test.id
labels = ["label1"]
Copy link
Collaborator

Choose a reason for hiding this comment

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

and here

Suggested change
labels = ["label1"]
labels = ["Label1"]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

resource "azurerm_virtual_hub_route_table" "test" {
name = "acctest-routetable-%d"
virtual_hub_id = azurerm_virtual_hub.test.id
labels = ["label1"]
Copy link
Collaborator

Choose a reason for hiding this comment

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

could we have more then one lable and check casing

Suggested change
labels = ["label1"]
labels = ["labeL1", "AnotherLabel"]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

}

resource "azurerm_virtual_network" "test" {
name = "acctest-vnet-%d"
Copy link
Collaborator

Choose a reason for hiding this comment

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

For all resources that support it can we use capitals for their names please?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated


* `destinations_type` - (Required) The type of destinations. Possible values are `CIDR`, `ResourceId` and `Service`.

* `next_hop` - (Required) The next hop resource ID.
Copy link
Collaborator

Choose a reason for hiding this comment

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

grammer

Suggested change
* `next_hop` - (Required) The next hop resource ID.
* `next_hop` - (Required) The next hop's resource ID.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

@neil-yechenwei
Copy link
Contributor Author

@katbyte , thanks for your comments. I've updated code. Please have a look. Thanks.

@katbyte katbyte changed the title Add new resource virtual hub route table Add new resource azurerm_virtual_hub_route_table Nov 4, 2020
@katbyte katbyte added this to the v2.35.0 milestone Nov 4, 2020
@katbyte katbyte merged commit f06446f into hashicorp:master Nov 4, 2020
katbyte added a commit that referenced this pull request Nov 4, 2020
@ghost
Copy link

ghost commented Nov 5, 2020

This has been released in version 2.35.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
    version = "~> 2.35.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Dec 5, 2020

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 as resolved and limited conversation to collaborators Dec 5, 2020
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.

2 participants