Skip to content

Passing follow=True to read_namespaced_pod_log makes it never return #199

@yuvipanda

Description

@yuvipanda

I'm trying to stream logs out of a running pod.

For a pod named 'test' running in the default namespace,

api = client.CoreV1Api()
api.read_namespaced_pod_log("test", "default")

returns the logs so far. But,

api = client.CoreV1Api()
api.read_namespaced_pod_log("test", "default", follow=True)

just never returns. I can't use it with watch.Watch either since that seems to be for a very different purpose.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.help-needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions