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

chore: Simplify DNSPolicy API #858

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

mikenairn
Copy link
Member

closes #855

  • Remove RoutingStrategy field. LoadBalanced vs Simple can be inferred from the value of the LoadBalancingSpec on the policy.
  • Simplify LoadBalancingSpec:
    • No longer uses label selectors to get values for geo or weight from a metav1.Object, but the values themselves should be set directly in the policy.
    • LoadBalancingSpec.DefaultGeo specifies if the current geo is the default one or not and signals to the endpoint generation whether to create the wildcard catch all endpoint.

@maleck13
Copy link
Collaborator

The changes look reasonable to me just not sure why we removed the test file and also perhaps we should go with optional on weight

@mikenairn mikenairn force-pushed the simplify_dnspolicy_api branch 2 times, most recently from 0f64419 to 35b569a Compare September 17, 2024 13:55
* Remove RoutingStrategy field. LoadBalanced vs Simple can be inferred
  from the value of the LoadBalancingSpec on the policy.
* Simplify LoadBalancingSpec:
  - No longer uses label selectors to get values for geo or weight from
    a metav1.Object, but the values themselves should be set directly in
the policy.
  - LoadBalancingSpec.DefaultGeo specifies if the current geo is the
    default one or not and signals to the endpoint generation whether to
create the wildcard catch all endpoint.

Signed-off-by: Michael Nairn <mnairn@redhat.com>
@mikenairn mikenairn marked this pull request as ready for review September 17, 2024 19:12
Copy link
Contributor

@maksymvavilov maksymvavilov left a comment

Choose a reason for hiding this comment

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

Looks good.

@mikenairn mikenairn merged commit 893fd2c into Kuadrant:main Sep 18, 2024
21 checks passed
@mikenairn mikenairn deleted the simplify_dnspolicy_api branch September 18, 2024 15:15
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.

Simplify geo and weighted options in DNSPolicy
4 participants