saidsef / pod-resources

Kubernetes resource monitoring application that retrieves pod metrics and checks resource usage periodically.
Apache License 2.0
1 stars 0 forks source link

feat(duplications): reduce check code duplications #11

Closed saidsef closed 1 month ago

saidsef commented 1 month ago

Problem Statement:

Multiple check funcs' checkResourceLimits, checkResourceRequests and checkMissingResources are very similar, this makes the code hard to understand and difficult to change.

Proposed Statement:

Combine functions, use slices, move code to internal container for logical grouping. This will improve code structure and make it easier to maintain.

github-actions[bot] commented 1 month ago

👋 Hi and Thanks for Reporting!