File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 13
13
from kubernetes .dynamic import DynamicClient
14
14
from kubernetes .stream import stream
15
15
from kubernetes .utils import create_from_yaml
16
+ from urllib3 import HTTPResponse
16
17
17
18
from .constants import (
18
19
CADDY_INGRESS_NAME ,
@@ -376,14 +377,15 @@ def get_ingress_ip_or_host():
376
377
return None
377
378
378
379
379
- def pod_log (pod_name , container_name = None , follow = False ) :
380
+ def pod_log (pod_name , container_name = None , follow = False , timestamps = False ) -> HTTPResponse :
380
381
sclient = get_static_client ()
381
382
try :
382
383
return sclient .read_namespaced_pod_log (
383
384
name = pod_name ,
384
385
namespace = get_default_namespace (),
385
386
container = container_name ,
386
387
follow = follow ,
388
+ timestamps = timestamps ,
387
389
_preload_content = False ,
388
390
)
389
391
except ApiException as e :
You can’t perform that action at this time.
0 commit comments