aquasecurity / kube-hunter

Hunt for security weaknesses in Kubernetes clusters
Apache License 2.0
4.75k stars 585 forks source link

Refactor configuration #283

Closed iyehuda closed 4 years ago

iyehuda commented 4 years ago

Description

Moved configuration into a separate package and break dependencies of __main__ module. This way we can run external tools on kube-hunter (e.g., pytest, profiling, etc.). runtest.py may now be deprecated and removed.

Contribution Guidelines

Please Read through the Contribution Guidelines.

Fixed Issues

Fixes #234

Contribution checklist

Notes

This PR was initiated by @RaitoBezarius, thank you for your work!

codecov-io commented 4 years ago

Codecov Report

Merging #283 into master will increase coverage by 0.8%. The diff coverage is 81.93%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #283     +/-   ##
=========================================
+ Coverage   58.07%   58.87%   +0.8%     
=========================================
  Files          38       39      +1     
  Lines        1994     2011     +17     
=========================================
+ Hits         1158     1184     +26     
+ Misses        836      827      -9
Impacted Files Coverage Δ
kube_hunter/core/__init__.py 100% <ø> (ø)
kube_hunter/core/events/__init__.py 100% <ø> (ø)
kube_hunter/modules/hunting/__init__.py 100% <ø> (ø)
kube_hunter/core/events/types/__init__.py 100% <ø> (ø)
kube_hunter/modules/report/__init__.py 100% <ø> (ø)
kube_hunter/modules/__init__.py 100% <ø> (ø)
kube_hunter/__init__.py 100% <ø> (ø)
kube_hunter/core/types.py 81.39% <ø> (ø)
kube_hunter/modules/discovery/__init__.py 100% <ø> (ø)
kube_hunter/modules/discovery/ports.py 75% <100%> (ø)
... and 37 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update fd4d79a...fa5375d. Read the comment docs.