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

Use kubernetes cluster client to discover redis shards #2915

Closed
wants to merge 4 commits into from

Conversation

AlexanderYastrebov
Copy link
Member

@AlexanderYastrebov AlexanderYastrebov commented Feb 8, 2024

Allow redis shards discovery using kubernetes cluster client without kubernetes dataclient.

Fixes #2476

@AlexanderYastrebov AlexanderYastrebov added the major moderate risk, for example new API, small filter changes that have no risk like refactoring or logs label Feb 8, 2024
@AlexanderYastrebov AlexanderYastrebov marked this pull request as draft February 8, 2024 18:18
@AlexanderYastrebov AlexanderYastrebov force-pushed the standalone-redis-updater-2 branch 8 times, most recently from f56d901 to 6880af8 Compare February 12, 2024 15:48
Refactor newClusterClient to allow usage of cluster client without dataclient.

Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
Add LoadEndpointAddresses to cluster client.
It is similar to caching dataclient GetEndpointAddresses.

Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
Fixes #2476

Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
@AlexanderYastrebov AlexanderYastrebov force-pushed the standalone-redis-updater-2 branch from 6880af8 to 89f45c2 Compare February 12, 2024 23:17
@@ -52,7 +52,7 @@ const (
const RouteGroupsNotInstalledMessage = `RouteGroups CRD is not installed in the cluster.
See: https://opensource.zalando.com/skipper/kubernetes/routegroups/#installation`

type clusterClient struct {
type ClusterClient struct {
Copy link
Member Author

Choose a reason for hiding this comment

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

Docs please

@AlexanderYastrebov
Copy link
Member Author

Decided to proceed with #2934

@AlexanderYastrebov AlexanderYastrebov deleted the standalone-redis-updater-2 branch February 13, 2024 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
major moderate risk, for example new API, small filter changes that have no risk like refactoring or logs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow redis shards discovery without full-fledged k8s dataclient
1 participant