Skip to content

Commit

Permalink
docs: exec example
Browse files Browse the repository at this point in the history
  • Loading branch information
cdaringe authored Oct 5, 2023
1 parent f480db8 commit 0571766
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/typescript/exec/exec-example.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import * as k8s from '@kubernetes/client-node';
import * as stream from 'stream';

const command = process.argv[2];

const kc = new k8s.KubeConfig();
kc.loadFromDefault();

Expand All @@ -11,7 +9,7 @@ exec.exec(
'default',
'nginx-4217019353-9gl4s',
'nginx',
command,
["ls, "-al", "."],
process.stdout as stream.Writable,
process.stderr as stream.Writable,
process.stdin as stream.Readable,
Expand Down

0 comments on commit 0571766

Please sign in to comment.