Closed doronkg closed 4 months ago
Attention: Patch coverage is 0%
with 6 lines
in your changes are missing coverage. Please review.
Project coverage is 43.45%. Comparing base (
333b525
) to head (53db71a
). Report is 2 commits behind head on main.
Files | Patch % | Lines |
---|---|---|
cmd/kor/root.go | 0.00% | 2 Missing :warning: |
pkg/filters/options.go | 0.00% | 2 Missing :warning: |
pkg/kor/all.go | 0.00% | 2 Missing :warning: |
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
One comment. We might want to later also support a flag for including cluster resources but I'm not sure if its needed.
We can have a follow-up in a discussion or create a backog issue for that. Like you, I'm not sure if its needed.
What this PR does / why we need it
Currently, when running
kor all -n example
, unused non-namespaced resources will be displayed as well. This PR fixesGetUnusedAll()
function to skip non-namespaced resources if--include-namespaces
flag is used.--include-namespaces
flag is considered used if the amount of listed namespaces is greater than 0.In addition, this PR fixes flag typos across the code/docs:
--include-namespace
->--include-namespaces
--exclude-namespace
->--exclude-namespaces
PR Checklist
Github Issue
Resolves #178
Notes for your reviewers
README.md
was automatically lintered by IDE, hence newline changes were commited, etc.