Use the default timeout of pykube if not passed to `get_pykube_api()`
@@ -134,4 +134,5 @@ def get_pykube_cfg() -> pykube.KubeConfig:
# TODO: add some caching, but keep kwargs in mind. Maybe add a key= for purpose/use-place?
def get_pykube_api(timeout=None) -> pykube.HTTPClient:
- return pykube.HTTPClient(get_pykube_cfg(), timeout=timeout)
+ kwargs = dict(timeout=timeout) if timeout is not None else dict()
+ return pykube.HTTPClient(get_pykube_cfg(), **kwargs)
