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

Ensure rebuild options are captured correctly if NodeBalancer config exists #55

Merged
merged 2 commits into from
Mar 9, 2020

Conversation

thorn3r
Copy link
Contributor

@thorn3r thorn3r commented Mar 4, 2020

General:

  • Have you removed all sensitive information, including but not limited to access keys and passwords?
  • Have you checked to ensure there aren't other open or closed Pull Requests for the same bug/feature/question?

Bugfix: Updating NodeBalancer port configs is broken. If you attempt to update a port configuration, the NodeBalancer does not update.

This PR addresses this and ensures NodeBalancer port configs are updated correctly.

@phillc phillc self-requested a review March 5, 2020 18:50
@thorn3r thorn3r force-pushed the fixLoadbalancerUpdateConfig branch 2 times, most recently from c6e8a2e to 7fe7469 Compare March 5, 2020 20:24
@@ -204,6 +204,85 @@ func testUpdateLoadBalancerAddAnnotation(t *testing.T, client *linodego.Client)
}
}

func testUpdateLoadBalancerAddPortAnnotation(t *testing.T, client *linodego.Client) {
targetTestPort := 80
portConfigAnnotation = fmt.Sprintf("%s-%i", annLinodePortConfigPrefix, targetTestPort)
Copy link
Contributor

Choose a reason for hiding this comment

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

:= ?

Copy link
Contributor

Choose a reason for hiding this comment

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

I fixed this locally and the test didn't fail if I removed the code change.

@thorn3r thorn3r force-pushed the fixLoadbalancerUpdateConfig branch 2 times, most recently from 9870689 to d59a0d5 Compare March 5, 2020 21:46
@thorn3r thorn3r force-pushed the fixLoadbalancerUpdateConfig branch from d59a0d5 to 2f888af Compare March 6, 2020 21:10
@phillc phillc merged commit 9c54ad0 into linode:master Mar 9, 2020
@phillc phillc added the bugfix for any bug fixes in the changelog. label Mar 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix for any bug fixes in the changelog.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants