From e750eb7e387447ae1d86c365e4332b81cd533364 Mon Sep 17 00:00:00 2001 From: TingluoHuang Date: Thu, 28 Oct 2021 21:20:48 -0400 Subject: [PATCH] . --- .../kubectlHandler/src/kubectlHandler.ts | 4 ++-- src/Misc/layoutbin/kubectlHandler/index.js | 10 +++------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/Misc/containerEngineHandlers/kubectlHandler/src/kubectlHandler.ts b/src/Misc/containerEngineHandlers/kubectlHandler/src/kubectlHandler.ts index dc010e1e5..a4f99974f 100644 --- a/src/Misc/containerEngineHandlers/kubectlHandler/src/kubectlHandler.ts +++ b/src/Misc/containerEngineHandlers/kubectlHandler/src/kubectlHandler.ts @@ -110,9 +110,9 @@ async function run(): Promise { } else if (command === 'Remove') { const removeInput = inputJson.removeInput core.debug(JSON.stringify(removeInput)) - const jobContainerId = removeInput.jobContainerId + // const jobContainerId = removeInput.jobContainerId - await exec.exec('kubectl', ['delete', 'pod', jobContainerId, '--force']) + // await exec.exec('kubectl', ['delete', 'pod', jobContainerId, '--force']) // await exec.exec('podman', ['network', 'rm', '-f', network]) } else if (command === 'Exec') { const execInput = inputJson.execInput diff --git a/src/Misc/layoutbin/kubectlHandler/index.js b/src/Misc/layoutbin/kubectlHandler/index.js index 5ae2e6ace..a8d70b86d 100644 --- a/src/Misc/layoutbin/kubectlHandler/index.js +++ b/src/Misc/layoutbin/kubectlHandler/index.js @@ -3060,11 +3060,7 @@ function run() { ]; yield exec.exec('kubectl', cpKubeInnerArgs); // copy over _work - const cpWorkArgs = [ - 'cp', - '/actions-runner/_work', - 'job-container:/__w/' - ]; + const cpWorkArgs = ['cp', '/actions-runner/_work', 'job-container:/__w/']; yield exec.exec('kubectl', cpWorkArgs); const creationOutput = { JobContainerId: 'job-container', @@ -3077,8 +3073,8 @@ function run() { else if (command === 'Remove') { const removeInput = inputJson.removeInput; core.debug(JSON.stringify(removeInput)); - const jobContainerId = removeInput.jobContainerId; - yield exec.exec('kubectl', ['delete', 'pod', jobContainerId, '--force']); + // const jobContainerId = removeInput.jobContainerId + // await exec.exec('kubectl', ['delete', 'pod', jobContainerId, '--force']) // await exec.exec('podman', ['network', 'rm', '-f', network]) } else if (command === 'Exec') {