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(cluster): add event recording functionality for RedisCluster controller. #1182

Merged
merged 3 commits into from
Dec 22, 2024

Conversation

drivebyer
Copy link
Collaborator

@drivebyer drivebyer commented Dec 22, 2024

Description

- Introduced a new events package to manage event recording, including a Recorder struct and methods for adding and retrieving events.
- Updated the RedisCluster controller to utilize the event recorder, allowing it to log downscale events.
- Enhanced the main function to initialize the event recorder for the RedisCluster controller.

This update improves observability capabilities for RedisCluster operations.

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

- Removed the Scheme field from the Reconciler struct in rediscluster_controller.go, main.go, and rediscluster_controller_suite_test.go as it was not being utilized.
- This cleanup enhances code clarity and maintainability by eliminating unnecessary components.

Signed-off-by: [Your Name]
Signed-off-by: drivebyer <[email protected]>
…troller

- Introduced a new events package to manage event recording, including a Recorder struct and methods for adding and retrieving events.
- Updated the RedisCluster controller to utilize the event recorder, allowing it to log downscale events.
- Enhanced the main function to initialize the event recorder for the RedisCluster controller.

This update improves observability capabilities for RedisCluster operations.

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

codecov bot commented Dec 22, 2024

Codecov Report

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

Project coverage is 29.89%. Comparing base (60ef5a2) to head (14e6ffb).
Report is 12 commits behind head on master.

Files with missing lines Patch % Lines
pkg/controllers/common/events/events.go 0.00% 9 Missing ⚠️
main.go 0.00% 1 Missing ⚠️
...ontrollers/rediscluster/rediscluster_controller.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1182      +/-   ##
==========================================
- Coverage   30.20%   29.89%   -0.31%     
==========================================
  Files          55       56       +1     
  Lines        6294     6446     +152     
==========================================
+ Hits         1901     1927      +26     
- Misses       4200     4326     +126     
  Partials      193      193              

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

@drivebyer drivebyer merged commit 6ee6417 into OT-CONTAINER-KIT:master Dec 22, 2024
16 of 18 checks passed
@drivebyer drivebyer deleted the event-recorder branch December 22, 2024 06:22
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.

1 participant