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: enhance RedisReplication controller and CRD with additional status #1154

Merged
merged 10 commits into from
Dec 11, 2024

Conversation

drivebyer
Copy link
Collaborator

  • Added new printer columns "Master" and "Age" to the RedisReplication CRD for better visibility of the master node and resource age.
  • Refactored the reconciliation logic in the RedisReplication controller to improve clarity and maintainability by introducing a reconciler struct for handling different reconciliation tasks.
  • Updated the e2e tests to validate the HA setup of Redis Replication and Sentinel, ensuring consistency in master IP across different sources.
  • Removed obsolete test files and replaced them with a new HA setup configuration.

This update improves the usability and reliability of the Redis replication feature.

Description

Fixes #1153

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

…tus columns and refactor reconciliation logic

- Added new printer columns "Master" and "Age" to the RedisReplication CRD for better visibility of the master node and resource age.
- Refactored the reconciliation logic in the RedisReplication controller to improve clarity and maintainability by introducing a reconciler struct for handling different reconciliation tasks.
- Updated the e2e tests to validate the HA setup of Redis Replication and Sentinel, ensuring consistency in master IP across different sources.
- Removed obsolete test files and replaced them with a new HA setup configuration.

This update improves the usability and reliability of the Redis replication feature.

Signed-off-by: drivebyer <[email protected]>
@drivebyer drivebyer added the enhancement New feature or request label Dec 10, 2024
@drivebyer drivebyer changed the title feat: enhance RedisReplication controller and CRD with additional status columns and refactor reconciliation logic feat: enhance RedisReplication controller and CRD with additional status Dec 10, 2024
Copy link

codecov bot commented Dec 10, 2024

Codecov Report

Attention: Patch coverage is 35.86957% with 59 lines in your changes missing coverage. Please review.

Project coverage is 30.20%. Comparing base (d121d86) to head (60ef5a2).
Report is 155 commits behind head on master.

Files with missing lines Patch % Lines
...rs/redisreplication/redisreplication_controller.go 36.66% 49 Missing and 8 partials ⚠️
pkg/k8sutils/kube.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1154      +/-   ##
==========================================
- Coverage   35.20%   30.20%   -5.00%     
==========================================
  Files          19       55      +36     
  Lines        3213     6294    +3081     
==========================================
+ Hits         1131     1901     +770     
- Misses       2015     4200    +2185     
- Partials       67      193     +126     

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

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]>
Signed-off-by: drivebyer <[email protected]>
@drivebyer drivebyer merged commit 7a037e3 into OT-CONTAINER-KIT:master Dec 11, 2024
17 of 19 checks passed
@drivebyer drivebyer deleted the ha-failover branch December 11, 2024 01:41
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.

redis-role labels are not getting updated after master failover
1 participant