Skip to content

Commit 0571766

Browse files
authored
docs: exec example
1 parent f480db8 commit 0571766

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

examples/typescript/exec/exec-example.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import * as k8s from '@kubernetes/client-node';
22
import * as stream from 'stream';
33

4-
const command = process.argv[2];
5-
64
const kc = new k8s.KubeConfig();
75
kc.loadFromDefault();
86

@@ -11,7 +9,7 @@ exec.exec(
119
'default',
1210
'nginx-4217019353-9gl4s',
1311
'nginx',
14-
command,
12+
["ls, "-al", "."],
1513
process.stdout as stream.Writable,
1614
process.stderr as stream.Writable,
1715
process.stdin as stream.Readable,

0 commit comments

Comments
 (0)