-
Notifications
You must be signed in to change notification settings - Fork 430
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
💎 Refactor load balancer scope to interface #771
💎 Refactor load balancer scope to interface #771
Conversation
78c972b
to
75b4878
Compare
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.
Looks clean. Just a question.
fd25573
to
d3f91c5
Compare
lb.LoadBalancerPropertiesFormat.Probes = &[]network.Probe{ | ||
{ | ||
Name: to.StringPtr(probeName), | ||
ProbePropertiesFormat: &network.ProbePropertiesFormat{ |
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 is the only thing I changed that's not strictly a refactor... The probe for the public LB (api server role) was still using TCP , I changed it to HTTPS to match 316a2a6 since we're using standard LBs everywhere, and it made it simpler to not have a separate probe if/else per role. Tested functional behavior is the same and this change is backwards compatible.
Happy to revert it if reviewers think a separate PR would be more appropriate and we'd rather keep this one as a strict refactor.
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 heads up, was about to comment on the if .. else part. But this comment made it clear as to this is just a copy paste rather than a complete refactor.
/cc @jsturtevant |
@CecileRobertMichon: GitHub didn't allow me to request PR reviews from the following users: jsturtevant. Note that only kubernetes-sigs members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
lb.LoadBalancerPropertiesFormat.Probes = &[]network.Probe{ | ||
{ | ||
Name: to.StringPtr(probeName), | ||
ProbePropertiesFormat: &network.ProbePropertiesFormat{ |
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 heads up, was about to comment on the if .. else part. But this comment made it clear as to this is just a copy paste rather than a complete refactor.
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.
lgtm
c2f97ff
to
88d2ced
Compare
@devigned please take another look, rebased and fixed copyright |
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.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: devigned The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
@CecileRobertMichon: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
What this PR does / why we need it: Follow up from #716, this PR applies the same pattern to load balancers.
Note that this also combines internal and public load balancers services into one load balancer service (to mirror the Azure load balancer client).
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Partially addresses #757
Special notes for your reviewer:
Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.
TODOs:
Release note: