aquasecurity / kube-hunter

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

Removed unused imports #338

Closed iyehuda closed 4 years ago

iyehuda commented 4 years ago

Description

Previously, kube_hunter imported it's all code base in it's __init__.py file. It caused hunter registration to happen before being able to set config (impacts on testing).

Contribution Guidelines

Please Read through the Contribution Guidelines.

Fixed Issues

Resolves #334

Contribution checklist

Notes

codecov-io commented 4 years ago

Codecov Report

Merging #338 into master will increase coverage by 0.19%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #338      +/-   ##
==========================================
+ Coverage   60.35%   60.54%   +0.19%     
==========================================
  Files          41       40       -1     
  Lines        1970     1967       -3     
==========================================
+ Hits         1189     1191       +2     
+ Misses        781      776       -5     
Impacted Files Coverage Δ
kube_hunter/modules/hunting/apiserver.py 69.96% <0.00%> (+0.33%) :arrow_up:
kube_hunter/core/events/handler.py 90.90% <0.00%> (+1.01%) :arrow_up:
kube_hunter/modules/discovery/ports.py 88.88% <0.00%> (+11.11%) :arrow_up:

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 4cb2c8b...eef6d44. Read the comment docs.