mirror of
https://github.com/aquasecurity/kube-hunter.git
synced 2026-02-14 18:09:56 +00:00
Compare commits
3 Commits
main
...
improve_he
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3b7c00597f | ||
|
|
52b8887ff6 | ||
|
|
111265e3fb |
@@ -133,10 +133,13 @@ def parser_add_arguments(parser):
|
||||
|
||||
parser.add_argument("--network-timeout", type=float, default=5.0, help="network operations timeout")
|
||||
|
||||
parser.add_argument("--num-worker-threads", type=int, default=800,
|
||||
help="In some environments the default thread count of 800 is too much. "
|
||||
"This crashes the process when trying to open more threads."
|
||||
"In that case feel free to try a lower number, like 400 for example.")
|
||||
parser.add_argument(
|
||||
"--num-worker-threads",
|
||||
type=int,
|
||||
default=800,
|
||||
help="In some environments the default thread count (800) can cause the process to crash. "
|
||||
"In the case of a crash try lowering the thread count",
|
||||
)
|
||||
|
||||
|
||||
def parse_args(add_args_hook):
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
# flake8: noqa: E402
|
||||
import requests_mock
|
||||
import json
|
||||
|
||||
from kube_hunter.conf import Config, set_config
|
||||
from kube_hunter.core.events.types import NewHostEvent
|
||||
|
||||
set_config(Config())
|
||||
|
||||
from kube_hunter.core.events.types import NewHostEvent
|
||||
|
||||
|
||||
def test_presetcloud():
|
||||
"""Testing if it doesn't try to run get_cloud if the cloud type is already set.
|
||||
|
||||
Reference in New Issue
Block a user