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

always return lbnotfound from getNodeBalancerForService #168

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

luthermonson
Copy link
Contributor

Found an edge case where I had deleted a nodebalancer but it was set on a service and wouldn't clear the finalizer and never saw the short-circuit log from here: https://github.com/linode/linode-cloud-controller-manager/blob/main/cloud/linode/loadbalancers.go#L413

the lbnotfound type check was rewriting to a new error and never returning so moving the onus on checking lbnotfound to the create path so a second load balancer is not created and the skip now works.

@okokes-akamai
Copy link
Contributor

Can you reflect this change in tests? Fix the failing one and perhaps add some new ones.

@luthermonson
Copy link
Contributor Author

Can you reflect this change in tests? Fix the failing one and perhaps add some new ones.

tests added, fail in main but pass in my branch

@luthermonson luthermonson force-pushed the check-move branch 2 times, most recently from 2f520b3 to aaab0ca Compare January 19, 2024 02:20
@tchinmai7 tchinmai7 merged commit 00ff396 into linode:main Jan 23, 2024
4 checks passed
@luthermonson luthermonson deleted the check-move branch January 24, 2024 02:46
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.

3 participants