Skip to content

Commit

Permalink
Update pod exec examples to send required query parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
gempesaw committed Sep 24, 2018
1 parent cbf4a22 commit 39f6b24
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions examples/pod-exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ async function main() {
// Pod with single container
let res = await client.api.v1.namespaces('namespace_name').pods('pod_name').exec.post({
qs: {
command: ['ls', '-al']
command: ['ls', '-al'],
stdout: true,
stderr: true
}
});
console.log(res.body);
Expand All @@ -22,7 +24,9 @@ async function main() {
res = await client.api.v1.namespaces('namespace_name').pods('pod_name').exec.post({
qs: {
command: ['ls', '-al'],
container: 'container_name'
container: 'container_name',
stdout: true,
stderr: true
}
});
console.log(res.body);
Expand Down

0 comments on commit 39f6b24

Please sign in to comment.