yonahd / kor

A Golang Tool to discover unused Kubernetes Resources
MIT License
1.04k stars 96 forks source link

Feat: show unused reason #278

Closed yonahd closed 5 months ago

yonahd commented 6 months ago

Please read CONTRIBUTING.md for additional information on contributing to this repository!

What this PR does / why we need it

PR Checklist

Github Issue

[#167 ]

yonahd commented 5 months ago
Screenshot 2024-06-03 at 22 39 34

Example output

codecov-commenter commented 5 months ago

Codecov Report

Attention: Patch coverage is 47.01835% with 231 lines in your changes missing coverage. Please review.

Project coverage is 41.21%. Comparing base (ea85ff7) to head (04aa206). Report is 2 commits behind head on main.

Files Patch % Lines
pkg/kor/formatter.go 9.27% 134 Missing and 3 partials :warning:
pkg/kor/delete.go 15.09% 45 Missing :warning:
pkg/kor/crds.go 0.00% 6 Missing :warning:
pkg/kor/multi.go 0.00% 5 Missing :warning:
pkg/kor/pdbs.go 61.53% 5 Missing :warning:
pkg/kor/all.go 0.00% 4 Missing :warning:
pkg/kor/finalizers.go 70.00% 3 Missing :warning:
pkg/kor/services.go 80.00% 3 Missing :warning:
pkg/kor/statefulsets.go 78.57% 3 Missing :warning:
pkg/kor/hpas.go 75.00% 2 Missing :warning:
... and 16 more

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #278 +/- ## ========================================== + Coverage 40.87% 41.21% +0.34% ========================================== Files 58 59 +1 Lines 2953 3113 +160 ========================================== + Hits 1207 1283 +76 - Misses 1545 1627 +82 - Partials 201 203 +2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

yonahd commented 5 months ago

@luisdavim @doronkg If you can take a look that would be great