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

Check http statusCode when delete loxilb's LB rule #60

Merged
merged 1 commit into from
Oct 13, 2023
Merged

Check http statusCode when delete loxilb's LB rule #60

merged 1 commit into from
Oct 13, 2023

Conversation

backguynn
Copy link
Collaborator

If kube-loxilb fails to create an LB, kube-loxilb attempts to clean up all LB information created so far.
At this time, loxilb returns an error (no rules) with http Status 200 if there is no corresponding LB rule.

Currently, kube-loxilb does not check the status code, so it judges this as a deletion failure.
Therefore, the cleanup also fails.
This causes a state in which external IPs cannot be assigned to services because the IP Pool is not organized.

To prevent this issue I updated the code.

@backguynn backguynn merged commit abfcd01 into loxilb-io:main Oct 13, 2023
1 check 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.

1 participant