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

Allow specifying traffic distribution preference for the etcd client Service #973

Merged

Conversation

ialidzhikov
Copy link
Member

@ialidzhikov ialidzhikov commented Jan 16, 2025

How to categorize this PR?

/area networking
/area high-availability
/kind enhancement

What this PR does / why we need it:
In Kubernetes, there is a new feature allowing to achieve topology-aware routing for Service endpoints - ServiceTrafficDistribution.
With gardener/gardener#10973, we would like to use the new ServiceTrafficDistribution feature starting Kubernetes 1.31+ instead of the TopologyAwareHints feature.
To keep etcd client Services topology-aware, we need to be able to specify the .spec.trafficDistribution field of the client Service via the Etcd resource. This PR makes this possible.

Which issue(s) this PR fixes:
Part of gardener/gardener#10421

Special notes for your reviewer:
N/A

Release note:

The Etcd resource now allows specifying etcd client Service traffic distribution preferences via the `spec.etcd.clientService.trafficDistribution` field.

@ialidzhikov ialidzhikov requested a review from a team as a code owner January 16, 2025 14:39
@gardener-robot-ci-1 gardener-robot-ci-1 added reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Jan 16, 2025
@renormalize renormalize added this to the v0.27.0 milestone Jan 17, 2025
@gardener-robot gardener-robot added the needs/review Needs review label Jan 23, 2025
@gardener-robot gardener-robot added area/high-availability High availability related area/networking Networking related kind/enhancement Enhancement, improvement, extension labels Jan 23, 2025
Copy link
Contributor

@seshachalam-yv seshachalam-yv left a comment

Choose a reason for hiding this comment

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

Thank you, @ialidzhikov, for adding support for the TrafficDistribution. Please address the following minor comments.

api/v1alpha1/etcd.go Show resolved Hide resolved
api/v1alpha1/etcd.go Show resolved Hide resolved
@gardener-robot gardener-robot added the needs/changes Needs (more) changes label Jan 27, 2025
@gardener-robot gardener-robot added the size/m Size of pull request is medium (see gardener-robot robot/bots/size.py) label Jan 28, 2025
@gardener-robot-ci-2 gardener-robot-ci-2 added reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Jan 28, 2025
@ialidzhikov
Copy link
Member Author

@seshachalam-yv , thanks for the suggestions! I addressed them in ca098ad.

Copy link
Contributor

@seshachalam-yv seshachalam-yv left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@gardener-robot
Copy link

@seshachalam-yv Command /approve is not known.

@gardener-robot gardener-robot added reviewed/lgtm Has approval for merging and removed needs/changes Needs (more) changes needs/review Needs review labels Jan 29, 2025
@renormalize renormalize merged commit 0cfc04c into gardener:master Jan 29, 2025
13 checks passed
@gardener-robot gardener-robot added the status/closed Issue is closed (either delivered or triaged) label Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/high-availability High availability related area/networking Networking related kind/enhancement Enhancement, improvement, extension needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) reviewed/lgtm Has approval for merging size/m Size of pull request is medium (see gardener-robot robot/bots/size.py) status/closed Issue is closed (either delivered or triaged)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants