Skip to content

feat(cluster): add event recording functionality for RedisCluster controller.#1182

Merged
drivebyer merged 3 commits intoOT-CONTAINER-KIT:masterfrom
drivebyer:event-recorder
Dec 22, 2024
Merged

feat(cluster): add event recording functionality for RedisCluster controller.#1182
drivebyer merged 3 commits intoOT-CONTAINER-KIT:masterfrom
drivebyer:event-recorder

Conversation

@drivebyer
Copy link
Copy Markdown
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 <wuyangmuc@gmail.com>
…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 <wuyangmuc@gmail.com>
@drivebyer drivebyer added the enhancement New feature or request label Dec 22, 2024
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
@codecov
Copy link
Copy Markdown

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
@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