Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(k8s): cleanup kaniko pod (#1757)
Co-authored-by: Mitchell Friedman <mitchellfriedman@oaknorth.ai>
  • Loading branch information
mitchfriedman and Mitchell Friedman committed Mar 31, 2020
1 parent 99b2f04 commit bb923ad
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions garden-service/src/plugins/kubernetes/container/build.ts
Expand Up @@ -610,13 +610,17 @@ async function runKaniko({ provider, namespace, log, module, args, outputStream
},
})

return runner.startAndWait({
ignoreError: true,
interactive: false,
log,
timeout: module.spec.build.timeout,
stdout: outputStream,
})
try {
return runner.startAndWait({
ignoreError: true,
interactive: false,
log,
timeout: module.spec.build.timeout,
stdout: outputStream,
})
} finally {
await runner.stop()
}
}

async function getManifestInspectArgs(module: ContainerModule, deploymentRegistry: ContainerRegistryConfig) {
Expand Down

0 comments on commit bb923ad

Please sign in to comment.