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

New resource and datasource vcd_nsxt_edgegateway_dns for DNS configuration management #1154

Merged
merged 32 commits into from
Nov 23, 2023

Conversation

adezxc
Copy link

@adezxc adezxc commented Nov 8, 2023

Add new resource and data source for NSX-T Edge Gateway DNS configuration.

It is pretty straightforward except for a few caveats:
snat_rule_ip_address is only available since 10.5.1 and can only be set for IP-spaces enabled Edge Gateways
conditional_forwarder_zone is a set that contains another two sets upstream_servers and domain_names.

Adam Jasinski added 14 commits November 7, 2023 13:26
Signed-off-by: Adam Jasinski <[email protected]>
Signed-off-by: Adam Jasinski <[email protected]>
Signed-off-by: Adam Jasinski <[email protected]>
Signed-off-by: Adam Jasinski <[email protected]>
Signed-off-by: Adam Jasinski <[email protected]>
Signed-off-by: Adam Jasinski <[email protected]>
@adezxc adezxc marked this pull request as ready for review November 13, 2023 10:03
Copy link
Collaborator

@Didainius Didainius left a comment

Choose a reason for hiding this comment

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

Just some comments on the first readthrough

website/docs/d/nsxt_edgegateway_dns.html.markdown Outdated Show resolved Hide resolved
vcd/resource_vcd_nsxt_edgegateway_dns.go Outdated Show resolved Hide resolved
Adam Jasinski added 2 commits November 14, 2023 16:10
Signed-off-by: Adam Jasinski <[email protected]>
Signed-off-by: Adam Jasinski <[email protected]>
Copy link
Collaborator

@adambarreiro adambarreiro left a comment

Choose a reason for hiding this comment

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

Nice feature! First scan:

.changes/v3.11.0/1154-features.md Outdated Show resolved Hide resolved
vcd/datasource_vcd_nsxt_edgegateway_dns.go Outdated Show resolved Hide resolved
vcd/datasource_vcd_nsxt_edgegateway_dns.go Outdated Show resolved Hide resolved
vcd/datasource_vcd_nsxt_edgegateway_dns.go Outdated Show resolved Hide resolved
vcd/datasource_vcd_nsxt_edgegateway_dns.go Show resolved Hide resolved
Adam Jasinski added 4 commits November 15, 2023 17:06
bug with Default Forwarder zones where ID wouldn't be passed

Signed-off-by: Adam Jasinski <[email protected]>
Signed-off-by: Adam Jasinski <[email protected]>
Signed-off-by: Adam Jasinski <[email protected]>
Signed-off-by: Adam Jasinski <[email protected]>
Copy link
Collaborator

@Didainius Didainius left a comment

Choose a reason for hiding this comment

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

It looks good to me, but I have a few queries after testing it around

vcd/resource_vcd_nsxt_edgegateway_dns.go Outdated Show resolved Hide resolved
website/docs/r/nsxt_edgegateway_dns.html.markdown Outdated Show resolved Hide resolved
vcd/resource_vcd_nsxt_edgegateway_dns_test.go Outdated Show resolved Hide resolved
Adam Jasinski added 4 commits November 17, 2023 03:02
Signed-off-by: Adam Jasinski <[email protected]>
Signed-off-by: Adam Jasinski <[email protected]>
Signed-off-by: Adam Jasinski <[email protected]>
Adam Jasinski added 3 commits November 17, 2023 14:30
Signed-off-by: Adam Jasinski <[email protected]>
Signed-off-by: Adam Jasinski <[email protected]>
Signed-off-by: Adam Jasinski <[email protected]>
Adam Jasinski added 2 commits November 17, 2023 17:12
Copy link
Collaborator

@adambarreiro adambarreiro left a comment

Choose a reason for hiding this comment

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

LGTM! Tests passed

Adam Jasinski added 2 commits November 23, 2023 14:38
Signed-off-by: Adam Jasinski <[email protected]>
Signed-off-by: Adam Jasinski <[email protected]>
@adezxc adezxc merged commit 6cc4c0c into vmware:main Nov 23, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants