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: add redis-role label to redis replication #925

Merged
merged 10 commits into from
May 14, 2024

Conversation

drivebyer
Copy link
Collaborator

Description

Fixes #765

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

@drivebyer drivebyer added the enhancement New feature or request label May 14, 2024
Signed-off-by: drivebyer <[email protected]>
Copy link

codecov bot commented May 14, 2024

Codecov Report

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

Project coverage is 39.08%. Comparing base (d121d86) to head (50f4458).
Report is 45 commits behind head on master.

Files Patch % Lines
k8sutils/pod.go 0.00% 26 Missing ⚠️
controllers/redisreplication_controller.go 0.00% 21 Missing ⚠️
k8sutils/labels.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #925      +/-   ##
==========================================
+ Coverage   35.20%   39.08%   +3.88%     
==========================================
  Files          19       20       +1     
  Lines        3213     2720     -493     
==========================================
- Hits         1131     1063      -68     
+ Misses       2015     1586     -429     
- Partials       67       71       +4     

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

drivebyer added 3 commits May 14, 2024 14:57
Signed-off-by: drivebyer <[email protected]>
Signed-off-by: drivebyer <[email protected]>
Signed-off-by: drivebyer <[email protected]>
drivebyer added 5 commits May 14, 2024 16:26
Signed-off-by: drivebyer <[email protected]>
Signed-off-by: drivebyer <[email protected]>
Signed-off-by: drivebyer <[email protected]>
Signed-off-by: drivebyer <[email protected]>
Signed-off-by: drivebyer <[email protected]>
@drivebyer drivebyer requested a review from shubham-cmyk May 14, 2024 10:10
Copy link
Member

@shubham-cmyk shubham-cmyk left a comment

Choose a reason for hiding this comment

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

LGTM!

@drivebyer drivebyer merged commit 09a80f4 into OT-CONTAINER-KIT:master May 14, 2024
28 of 29 checks passed
@drivebyer drivebyer deleted the pod-role branch May 14, 2024 11:22
mattrobinsonsre pushed a commit to mattrobinsonsre/redis-operator that referenced this pull request Jul 11, 2024
* feat: add redis-role label to redis replication

Signed-off-by: drivebyer <[email protected]>

* fix lint

Signed-off-by: drivebyer <[email protected]>

* fix lint

Signed-off-by: drivebyer <[email protected]>

* fix test

Signed-off-by: drivebyer <[email protected]>

* fix test

Signed-off-by: drivebyer <[email protected]>

* fix test

Signed-off-by: drivebyer <[email protected]>

* fix test

Signed-off-by: drivebyer <[email protected]>

* fix test

Signed-off-by: drivebyer <[email protected]>

* fix test

Signed-off-by: drivebyer <[email protected]>

* fix test

Signed-off-by: drivebyer <[email protected]>

---------

Signed-off-by: drivebyer <[email protected]>
Signed-off-by: Matt Robinson <[email protected]>
@Leo791
Copy link

Leo791 commented Dec 30, 2024

Hey, I just triggered a failover. I noticed that the master gets patched to slave but the slave does not get patched to master. Would this be something easy to fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"replication-master-service" label is not appear at redis master role pod
3 participants