yonahd / kor

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

kor/used label not implemented right for some resources #166

Closed a5r0n closed 11 months ago

a5r0n commented 11 months ago

Describe the bug in resources like ingress and pvc where we check used objects then filtering them out from all objects, current behavior is to skip objects with kor/used labels, instead of adding them to the used list for later filtering.

To Reproduce N/A

Expected behavior

Screenshots If applicable, add screenshots to help explain your problem.

OS version, architecture and kor version e.g. Darwin x86_64 Kor version: 0.1.8

Additional context we definitely need some tests to cover kor/used behavior