Skip to content

Commit dd690d6

Browse files
committed
remove tar from copyFrom
Signed-off-by: Jeromy Cannon <[email protected]>
1 parent 8b33c4e commit dd690d6

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/core/k8.mjs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ export class K8 {
571571
const self = this
572572
return new Promise((resolve, reject) => {
573573
const execInstance = new k8s.Exec(this.kubeConfig)
574-
const command = ['tar', 'cf', '-', '-C', srcDir, srcFile]
574+
const command = ['cat', `${srcDir}/${srcFile}`]
575575
const writerStream = fs.createWriteStream(tmpFile)
576576
const errStream = new sb.WritableStreamBuffer()
577577

@@ -598,10 +598,7 @@ export class K8 {
598598

599599
try {
600600
// extract the downloaded file
601-
await tar.x({
602-
file: tmpFile,
603-
cwd: destDir
604-
})
601+
fs.copyFileSync(tmpFile, destDir)
605602

606603
self._deleteTempFile(tmpFile)
607604

0 commit comments

Comments
 (0)