When the kube-hunter couldn't find any clusters to scan , it exits with exit-code 0 instead it should exit with non-zero exit code. Kindly share your thoughts on this.
Example
bash-4.4# kube-hunter --remote 127.0.0.1 --report plain
2022-04-18 13:09:48,351 INFO kube_hunter.modules.report.collector Started hunting
2022-04-18 13:09:48,351 INFO kube_hunter.modules.report.collector Discovering Open Kubernetes Services
What are you trying to achieve
When the kube-hunter couldn't find any clusters to scan , it exits with exit-code 0 instead it should exit with non-zero exit code. Kindly share your thoughts on this.
Example
bash-4.4# kube-hunter --remote 127.0.0.1 --report plain 2022-04-18 13:09:48,351 INFO kube_hunter.modules.report.collector Started hunting 2022-04-18 13:09:48,351 INFO kube_hunter.modules.report.collector Discovering Open Kubernetes Services
Kube Hunter couldn't find any clusters bash-4.4# echo $? 0 bash-4.4#