Skip to content

Commit

Permalink
fix(k8s): cleanup kaniko pod (#1757)
Browse files Browse the repository at this point in the history
Co-authored-by: Mitchell Friedman <[email protected]>
  • Loading branch information
mitchfriedman and Mitchell Friedman authored 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
Original file line number Diff line number Diff line change
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.