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 load balancer service monitor resource and datasource #256

Merged
merged 26 commits into from
Jun 14, 2019

Conversation

Didainius
Copy link
Collaborator

@Didainius Didainius commented Jun 3, 2019

Ref #223

Note Because load balancers depend on edge gateway having none other operations this PR will adopt locking functionality introduced in #255 before merge once it is in master.

This is the first PR to start supporting edge gateway load balancers.

It includes resource and datasource vcd_lb_service_monitor. All actions should be possible including import.

vcd/provider.go Outdated Show resolved Hide resolved
Copy link
Contributor

@vbauzys vbauzys left a comment

Choose a reason for hiding this comment

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

Good progress :)

go.mod Outdated Show resolved Hide resolved
vcd/datasource_vcd_lb_service_monitor.go Show resolved Hide resolved
vcd/datasource_vcd_lb_service_monitor.go Show resolved Hide resolved
vcd/datasource_vcd_lb_service_monitor.go Show resolved Hide resolved
vcd/resource_vcd_lb_service_monitor.go Outdated Show resolved Hide resolved
website/docs/r/lb_service_monitor.html.markdown Outdated Show resolved Hide resolved
website/docs/r/lb_service_monitor.html.markdown Outdated Show resolved Hide resolved
edge_gateway = "my-edge-gw"

name = "not-managed"
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

What about expanding example to not only show how to define this datasource, but also how to use it in some other resource?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We can, but not yet. The next resource later on (vcd_lb_server_pool) will be able to consume it. Nothing else can use it now.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks, would be great to have that when possible.

Copy link
Collaborator

@lvirbalas lvirbalas left a comment

Choose a reason for hiding this comment

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

Almost there, some final asks from my side.

vcd/resource_vcd_lb_service_monitor.go Outdated Show resolved Hide resolved
vcd/resource_vcd_lb_service_monitor.go Show resolved Hide resolved
vcd/resource_vcd_lb_service_monitor.go Show resolved Hide resolved
vcd/resource_vcd_lb_service_monitor_test.go Show resolved Hide resolved
edge_gateway = "my-edge-gw"

name = "not-managed"
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks, would be great to have that when possible.

Copy link
Contributor

@dataclouder dataclouder left a comment

Choose a reason for hiding this comment

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

Great job so far!
First pass. Some changes requested.

website/docs/d/lb_service_monitor.html.markdown Outdated Show resolved Hide resolved
vcd/datasource_vcd_lb_service_monitor.go Show resolved Hide resolved
vcd/datasource_vcd_lb_service_monitor.go Show resolved Hide resolved
vcd/resource_vcd_lb_service_monitor.go Outdated Show resolved Hide resolved
vcd/resource_vcd_lb_service_monitor.go Outdated Show resolved Hide resolved
vcd/resource_vcd_lb_service_monitor.go Outdated Show resolved Hide resolved
vcd/resource_vcd_lb_service_monitor.go Outdated Show resolved Hide resolved
vcd/test-templates/misc3.tf Outdated Show resolved Hide resolved
Copy link
Collaborator

@lvirbalas lvirbalas left a comment

Choose a reason for hiding this comment

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

Great job, and thanks for the tune-ups! LGTM from my side (assuming no further changes to the user-facing interfaces).

Copy link
Contributor

@dataclouder dataclouder left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@vbauzys vbauzys left a comment

Choose a reason for hiding this comment

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

LGTM for now :)

@Didainius Didainius merged commit 52ebf04 into vmware:master Jun 14, 2019
@Didainius Didainius deleted the lb1 branch June 14, 2019 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants