Merge pull request #1980 from ghinks/examples/pod_exec

doc: comment pod_exec.py for multiple containers
This commit is contained in:
Yu Liao 2023-01-28 21:11:12 -08:00 committed by GitHub
commit 872643ca52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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=<name>.
resp = stream(api_instance.connect_get_namespaced_pod_exec,
name,
'default',