-
Notifications
You must be signed in to change notification settings - Fork 63
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
Lb nat pool #24
Lb nat pool #24
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @thetonymaster,
Thank you for the PR, I have left some comments inline that need to be addressed.
I have applied these changes to the azure provider here
return &schema.Resource{ | ||
Create: resourceArmLoadBalancerNatPoolCreate, | ||
Read: resourceArmLoadBalancerNatPoolRead, | ||
Update: resourceArmLoadBalancerNatPoolCreate, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we change this to resourceArmLoadBalancerNatPoolCreateUpdate
?
Type: schema.TypeString, | ||
Required: true, | ||
ForceNew: true, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we get some validation here? at a minimum validation.NoZeroValues
Required: true, | ||
StateFunc: ignoreCaseStateFunc, | ||
DiffSuppressFunc: ignoreCaseDiffSuppressFunc, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we add validation for all possible protocols here?
"frontend_port_end": { | ||
Type: schema.TypeInt, | ||
Required: true, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we validate this and ensure the values is a valid port number?
"backend_port": { | ||
Type: schema.TypeInt, | ||
Required: true, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we validate this and ensure the values is a valid port number?
ID: rule.ID, | ||
} | ||
|
||
properties.FrontendIPConfiguration = &feip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could become
properties.FrontendIPConfiguration = &network.SubResource{
ID: rule.ID,
}
InboundNatPoolPropertiesFormat: &properties, | ||
} | ||
|
||
return &natPool, nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this could become
return &network.InboundNatPool{
Name: utils.String(d.Get("name").(string)),
InboundNatPoolPropertiesFormat: &properties,
}, nil
return fmt.Sprintf(` | ||
|
||
resource "azurestack_resource_group" "test" { | ||
name = "acctestRG-%d" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very minor but could we align the =s here?
page_title: "Azure Resource Manager: azurestack_lb_nat_pool" | ||
sidebar_current: "docs-azurestack-resource-loadbalancer-nat-pool" | ||
description: |- | ||
Create a LoadBalancer NAT Pool. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we change this to Manages?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also LoadBalancer -> Load Balancer to match the azure docs
|
||
# azurestack_lb_nat_pool | ||
|
||
Create a LoadBalancer NAT pool. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we change this to Manages?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also LoadBalancer -> Load Balancer to match the azure docs (all instances of this should be fixed)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates @thetonymaster, LGTM 👍
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! |
No description provided.