From 39f6b24595c462de0696907a6b6062f929899137 Mon Sep 17 00:00:00 2001 From: Daniel Gempesaw Date: Mon, 24 Sep 2018 15:22:58 -0400 Subject: [PATCH] Update pod exec examples to send required query parameters --- examples/pod-exec.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/pod-exec.js b/examples/pod-exec.js index 6a9fa37b..9df7f5a1 100644 --- a/examples/pod-exec.js +++ b/examples/pod-exec.js @@ -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); @@ -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);