-
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
feat: add OpenShift exceptions #284
Conversation
* fix(formatOutput): fix spacing between tables * fix * refactor * refactor --------- Co-authored-by: Phil Brocker <[email protected]>
* feat: added clusterroles * feat: added k3s configmaps * feat: added k3s crds * feat: added k3s secrets * feat: added k3s StorageClass * feat: added job resource exceptions * feat: added job exceptions * fix: importing embed
Signed-off-by: Mahdi <[email protected]>
* Update PR template * Add docs checkbox
* docs: add values.yaml descriptions to README.md * docs: updated chart version in readme * Update charts/kor/Chart.yaml Co-authored-by: Yonah Dissen <[email protected]> * docs: updated chart description in readme --------- Co-authored-by: Yonah Dissen <[email protected]>
* Feat: add failed jobs as unused * Update jobs.go * add tests * Update jobs in readme * Update jobs.go * Update jobs_test.go * Fix test * Update jobs_test.go * Update jobs_test.go * Update jobs_test.go * Update jobs_test.go * fix CR * Update jobs_test.go
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 #284 +/- ##
=======================================
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. |
There are various unused resources in 30+ default OpenShift Exceptions
Awaiting #249 to be merged and then I'll apply that logic in this PR. |
What this PR does / why we need it
This PR excludes the default resources created in basic OpenShift installations.
PR Checklist
GitHub Issue
Closes #240
Notes for your reviewers
In
pkg/kor/secrets.go
, a new exception secret type was added -kubernetes.io/dockercfg
, which is the OpenShift equivalent ofkubernetes.io/dockerconfigjson
.This PR addresses all default namespaces that doesn't begin with
openshift-
prefix.Meaning, it covers the following namespaces:
openshift
,default
,kube-system
,kube-public
,kube-node-lease
&assisted-installer
.Basic OpenShift installation comes with 60+ namespaces beginning with
openshift-
prefix, which doesn't include additional namespaces created by OpenShift operators or customized installations, that would also be created with that prefix.As I see it, there are 3 options to address this case:
openshift-
prefix (flexible).@yonahd please share your thoughts, I'm leaning towards option no. (1).