aquasecurity / kube-hunter

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

Make hunters testable #319

Open iyehuda opened 4 years ago

iyehuda commented 4 years ago

What would you like to be added

Redefine hunters to get configuration as parameter.

Why is this needed

Following dependency inversion principal, and in order to write testable code, it is better that hunters will be initialized with config as parameter instead of referencing a global state variable.

gahag commented 4 years ago

Can I work on this?