yonahd / kor

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

feat: add AKS exceptions #260

Closed pbr0ck3r closed 6 months ago

pbr0ck3r 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

https://github.com/yonahd/kor/issues/239

Notes for your reviewers

pbr0ck3r commented 6 months ago

kor version: vdev


| |/ / | \ | ' / | | | |) | | . \ || | < ||___/|| _\

Unused Resources in Namespace: kube-system +----+---------------+------------------------------------------------------+ | # | RESOURCE TYPE | RESOURCE NAME | +----+---------------+------------------------------------------------------+ | 1 | ConfigMap | cluster-autoscaler-status | | 2 | ConfigMap | coredns-autoscaler | | 3 | ConfigMap | extension-apiserver-authentication | | 4 | ConfigMap | kube-apiserver-legacy-service-account-token-tracking | | 5 | ConfigMap | overlay-upgrade-data | | 6 | Secret | bootstrap-token-aeydym | | 7 | ReplicaSet | konnectivity-agent-65f7dc7f5c | | 8 | ReplicaSet | metrics-server-69574bbf8 | | 9 | DaemonSet | cloud-node-manager-windows | | 10 | DaemonSet | csi-azuredisk-node-win | | 11 | DaemonSet | csi-azurefile-node-win | +----+---------------+------------------------------------------------------+

Unused Crds: +---+---------------+------------------------------------------------+ | # | RESOURCE TYPE | RESOURCE NAME | +---+---------------+------------------------------------------------+ | 1 | Crd | volumesnapshotclasses.snapshot.storage.k8s.io | | 2 | Crd | volumesnapshotcontents.snapshot.storage.k8s.io | | 3 | Crd | volumesnapshots.snapshot.storage.k8s.io | +---+---------------+------------------------------------------------+

Unused ClusterRoles: +----+---------------+-------------------------------------------------------------------+ | # | RESOURCE TYPE | RESOURCE NAME | +----+---------------+-------------------------------------------------------------------+ | 1 | ClusterRole | admin | | 2 | ClusterRole | edit | | 3 | ClusterRole | system:aggregate-to-admin | | 4 | ClusterRole | system:aggregate-to-edit | | 5 | ClusterRole | system:aggregate-to-view | | 6 | ClusterRole | system:certificates.k8s.io:kube-apiserver-client-approver | | 7 | ClusterRole | system:certificates.k8s.io:kube-apiserver-client-kubelet-approver | | 8 | ClusterRole | system:certificates.k8s.io:kubelet-serving-approver | | 9 | ClusterRole | system:certificates.k8s.io:legacy-unknown-approver | | 10 | ClusterRole | system:heapster | | 11 | ClusterRole | system:kube-aggregator | | 12 | ClusterRole | system:kubelet-api-admin | | 13 | ClusterRole | system:node-problem-detector | | 14 | ClusterRole | system:persistent-volume-provisioner | | 15 | ClusterRole | view | +----+---------------+-------------------------------------------------------------------+

Unused StorageClasss: +---+---------------+-----------------------+ | # | RESOURCE TYPE | RESOURCE NAME | +---+---------------+-----------------------+ | 1 | StorageClass | azurefile | | 2 | StorageClass | azurefile-csi | | 3 | StorageClass | azurefile-csi-premium | | 4 | StorageClass | azurefile-premium | | 5 | StorageClass | default | | 6 | StorageClass | managed | | 7 | StorageClass | managed-csi | | 8 | StorageClass | managed-csi-premium | | 9 | StorageClass | managed-premium | +---+---------------+-----------------------+

codecov-commenter commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 43.40%. Comparing base (315a574) to head (b203b9f).

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

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #260 +/- ## ======================================= Coverage 43.40% 43.40% ======================================= Files 58 58 Lines 2806 2806 ======================================= Hits 1218 1218 Misses 1398 1398 Partials 190 190 ```

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