Skip to content

Conversation

@jimmidyson
Copy link
Member

Also refactors the apply logic to return early on anything other than a conflict. Other errors are not necessarily retryable and hence returning early is better practice.

I decided to do this while I was thinking about introducing the Cilium load-balancer and looking at using vendored Cilium API types instead of unstructured - doing this for metallb was nice and simple.

What problem does this PR solve?:

Which issue(s) this PR fixes:
Fixes #

How Has This Been Tested?:

Special notes for your reviewer:

Also refactors the apply logic to return early on anything other than
a conflict. Other errors are not necessarily retryable and hence
returning early is better practice.
Copy link
Contributor

@dkoshkin dkoshkin left a comment

Choose a reason for hiding this comment

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

Thanks for the clear errors on conflicts!

@jimmidyson jimmidyson enabled auto-merge (squash) September 25, 2025 11:40
@dlipovetsky
Copy link
Contributor

Overall, a really nice improvement. Thanks!

@jimmidyson jimmidyson merged commit 60c8c84 into main Sep 26, 2025
38 of 39 checks passed
@jimmidyson jimmidyson deleted the jimmi/metallb-api branch September 26, 2025 19:51
vijayaraghavanr31 pushed a commit that referenced this pull request Oct 8, 2025
Also refactors the apply logic to return early on anything other than a
conflict. Other errors are not necessarily retryable and hence returning
early is better practice.

I decided to do this while I was thinking about introducing the Cilium
load-balancer and looking at using vendored Cilium API types instead of
unstructured - doing this for metallb was nice and simple.

**What problem does this PR solve?**:

**Which issue(s) this PR fixes**:
Fixes #

**How Has This Been Tested?**:
<!--
Please describe the tests that you ran to verify your changes.
Provide output from the tests and any manual steps needed to replicate
the tests.
-->

**Special notes for your reviewer**:
<!--
Use this to provide any additional information to the reviewers.
This may include:
- Best way to review the PR.
- Where the author wants the most review attention on.
- etc.
-->
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.

4 participants