-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: find kor exceptions script #294
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #294 +/- ##
=======================================
Coverage 40.96% 40.96%
=======================================
Files 58 58
Lines 2910 2910
=======================================
Hits 1192 1192
Misses 1530 1530
Partials 188 188 ☔ View full report in Codecov by Sentry. |
It's a cool script. |
Yes, I believe it'd be needed even more than a couple of times, for at least the following scenarios:
This is a very basic script that could be enhanced (for example: auto merging outputs to Mapping K8s exceptions should be treated as an on-going maintenance, and we should come up with more manual/automatic methods to integrate it as part of the Definition-of-Done of multiple features. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
I agree with most of the points and the cost is not high |
What this PR does / why we need it?
This PR add a
hack
folder into kor, to include future useful scripts for contributors.It also includes the initial script
find_exceptions.sh
to discover false-positive default resources, the output of this script could be merged topkg/kor/exceptions
to be ignored by kor.This script should be used in issues like #236, #240 for intsance.
Output Example
PR Checklist
GitHub Issue
[XX-XX]
Notes for your reviewers
The
find_exceptions.sh
does not squash resources that appear in multiple namespaces, for example, if a ConfigMap is created in every namespace, the output will not display as so:The script eases the process to map the default resources, but requires manual intervention (regex, merging, etc).