Thanks to visit codestin.com
Credit goes to github.com

Skip to content

How do you get exit code connect_get_namespaced_pod_exec ? #812

Closed
@oz123

Description

@oz123

Currently I have to simply do this:

        response = stream(self.api.connect_get_namespaced_pod_exec,
                          podname, 'kube-system',
                          command=exec_command,
                          stderr=False, stdin=False,
                          stdout=True, tty=False)

        if not response:
            do_something__()

However, I can't get the error code, or the stderror.
Looking at the source code I don't see an easy way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions