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

Gateway can be omitted from pool spec #90

Merged
merged 1 commit into from
Mar 24, 2023

Conversation

tylerschultz
Copy link
Contributor

@tylerschultz tylerschultz commented Mar 14, 2023

This change allows the Gateway to be omitted from the Pool, preventing an error. Also, prior to this change, Gateway was required when specifying pool.spec.addresses. This change makes gateway optional when specifying pool.spec.addresses.

We took this opportunity to move what we considered business logic out of the pool utility package, and brought it back closer to the other business logic in the controller. The gateway is conditionally added to the list of in use IPs in the controller.

fixes: #89

@tylerschultz tylerschultz requested a review from schrej as a code owner March 14, 2023 23:33
@schrej
Copy link
Member

schrej commented Mar 23, 2023

Sorry, might have been the wrong order to merge these... Could you rebase this one please?

This change allows the Gateway to be omitted from the Pool, preventing
an error. Also, prior to this change, Gateway was required when specifying
`pool.spec.addresses`.

We took this opportunity to move what we considered business logic out
of the pool utility package, and brought it back closer to the other
business logic in the controller. The gateway is conditionally added to
the list of in use IPs in the controller.

fixes: kubernetes-sigs#89

Signed-off-by: Tyler Schultz <[email protected]>
Co-authored-by: Aidan Obley <[email protected]>
Co-authored-by: Edwin Xie <[email protected]>
@tylerschultz
Copy link
Contributor Author

We expected a conflict, NP. Rebased, should be good now.

@schrej schrej merged commit bc88c7c into kubernetes-sigs:main Mar 24, 2023
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.

Pools should allow for NOT specifying gateways
2 participants