From da99f0b71292d841c39950ea5a3138d5ef4c9e5b Mon Sep 17 00:00:00 2001 From: Glenn Hinks Date: Sun, 1 Jan 2023 08:31:24 -0500 Subject: [PATCH] doc: comment pod_exec.py for multiple containers The behavior in kubectl is to run the exec command against the default container. However, this needs to be specified with the client call. Add a comment in the example for this. --- examples/pod_exec.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/pod_exec.py b/examples/pod_exec.py index 1e2d9195a..ecfbe6c28 100644 --- a/examples/pod_exec.py +++ b/examples/pod_exec.py @@ -71,6 +71,8 @@ def exec_commands(api_instance): '/bin/sh', '-c', 'echo This message goes to stderr; echo This message goes to stdout'] + # When calling a pod with multiple containers running the target container + # has to be specified with a keyword argument container=. resp = stream(api_instance.connect_get_namespaced_pod_exec, name, 'default',