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

feat: redis-cluster add podAntiAffinity(#1174 ) #1180

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

xiaozhuang-a
Copy link
Contributor

Description

support leader and follower anti affinity of pods with the same order

Fixes #ISSUE

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist

  • Tests have been added/modified and all tests pass.
  • Functionality/bugs have been confirmed to be unchanged or fixed.
  • I have performed a self-review of my own code.
  • Documentation has been updated or added where necessary.

Additional Context

xiaozhuang added 3 commits December 20, 2024 19:00
Signed-off-by: xiaozhuang <[email protected]>
Signed-off-by: xiaozhuang <[email protected]>
Signed-off-by: xiaozhuang <[email protected]>
@xiaozhuang-a
Copy link
Contributor Author

webhook MutatingWebhookConfiguration need to add it to the redis-operator charts template?

Signed-off-by: xiaozhuang <[email protected]>
Copy link

codecov bot commented Dec 20, 2024

Codecov Report

Attention: Patch coverage is 0% with 88 lines in your changes missing coverage. Please review.

Project coverage is 29.80%. Comparing base (60ef5a2) to head (42ea5f4).
Report is 8 commits behind head on master.

Files with missing lines Patch % Lines
pkg/webhook/pod_webhook.go 0.00% 84 Missing ⚠️
main.go 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1180      +/-   ##
==========================================
- Coverage   30.20%   29.80%   -0.40%     
==========================================
  Files          55       56       +1     
  Lines        6294     6488     +194     
==========================================
+ Hits         1901     1934      +33     
- Misses       4200     4356     +156     
- Partials      193      198       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@drivebyer
Copy link
Collaborator

drivebyer commented Dec 21, 2024

Nice idea.

How about trigger mutation by adding an annotation to the RedisCluster resource, such as rediscluster.redis.redis.opstreelabs.in/role-anti-affinity. @xiaozhuang-a

@drivebyer
Copy link
Collaborator

BTW, we need add some test case to it.

@xiaozhuang-a
Copy link
Contributor Author

Nice idea.

How about trigger mutation by adding an annotation to the RedisCluster resource, such as rediscluster.redis.redis.opstreelabs.in/role-anti-affinity. @xiaozhuang-a

I think the 'add annotation' solution is very good, and I will implement it

@xiaozhuang-a
Copy link
Contributor Author

BTW, we need add some test case to it.

get

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.

2 participants