Skip to content

Commit 872643c

Browse files
authored
Merge pull request kubernetes-client#1980 from ghinks/examples/pod_exec
doc: comment pod_exec.py for multiple containers
2 parents a1a36b1 + e8954f7 commit 872643c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/pod_exec.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ def exec_commands(api_instance):
7171
'/bin/sh',
7272
'-c',
7373
'echo This message goes to stderr; echo This message goes to stdout']
74+
# When calling a pod with multiple containers running the target container
75+
# has to be specified with a keyword argument container=<name>.
7476
resp = stream(api_instance.connect_get_namespaced_pod_exec,
7577
name,
7678
'default',

0 commit comments

Comments
 (0)