prowler-cloud / prowler

Prowler is an Open Source Security tool for AWS, Azure, GCP and Kubernetes to do security assessments, audits, incident response, compliance, continuous monitoring, hardening and forensics readiness. Includes CIS, NIST 800, NIST CSF, CISA, FedRAMP, PCI-DSS, GDPR, HIPAA, FFIEC, SOC2, GXP, Well-Architected Security, ENS and more
https://prowler.com
Apache License 2.0
10.76k stars 1.53k forks source link

refactor(kubernetes): refactor Kubernetes provider #4805

Closed pedrooot closed 2 months ago

pedrooot commented 2 months ago

Description

Refactor code from Kubernetes provider to ensure that it can be used as a library from the SDK.

Checklist

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 38.46154% with 8 lines in your changes missing coverage. Please review.

Project coverage is 89.15%. Comparing base (05da5d1) to head (79a7243). Report is 1 commits behind head on master.

Files Patch % Lines
...rowler/providers/kubernetes/kubernetes_provider.py 50.00% 5 Missing :warning:
prowler/providers/common/provider.py 0.00% 3 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #4805 +/- ## ========================================== - Coverage 89.20% 89.15% -0.06% ========================================== Files 933 933 Lines 28567 28567 ========================================== - Hits 25483 25468 -15 - Misses 3084 3099 +15 ```

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