diff --git a/examples/typescript/exec/exec-example.ts b/examples/typescript/exec/exec-example.ts index 83cf100f9e7..b1c4217df85 100644 --- a/examples/typescript/exec/exec-example.ts +++ b/examples/typescript/exec/exec-example.ts @@ -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(); @@ -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,