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') {